Project

General

Profile

Actions

action #62600

closed

Improve error output when calling openqa-clone-custom-git-refspec with wrong args, not just exit code

Added by tinita almost 5 years ago. Updated almost 5 years ago.

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

Related issues 1 (1 open0 closed)

Related to openQA Project (public) - coordination #58184: [saga][epic][use case] full version control awareness within openQABlockedokurz2019-08-01

Actions
Actions

Also available in: Atom PDF