Project

General

Profile

action #62600

Updated by okurz almost 5 years ago

## Motivation 

 When options like `--apikey` are passed as the first arguments, the script does not output anything and exits with 3: 

     % openqa-clone-custom-git-refspec --apikey aaaa --apisecret aaaa    https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/9407 https://openqa.suse.de/tests/3817935 
     % echo $? 
     3 

 That's not very helpful. 

 openqa-clone-custom-git-refspec should have helpful messages on error and also `--help`. 


 ## Acceptance criteria 

 * **AC1:** openqa-clone-custom-git-refspec has an option `--help` showing help text 
 * **AC2:** openqa-clone-custom-git-refspec shows error messages telling Also the user what went wrong when wrong parameters have been used script is missing a `--help` option.

Back