Actions
action #62600
closedImprove error output when calling openqa-clone-custom-git-refspec with wrong args, not just exit code
Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
QA (public, currently private due to #173521) - future
Start date:
2020-01-23
Due date:
% Done:
0%
Estimated time:
Description
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 the user what went wrong when wrong parameters have been used
Actions