Project

General

Profile

Actions

action #16538

closed

[easy hack] improve isotovideo command line handling and help

Added by rpalethorpe about 7 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2017-02-07
Due date:
% Done:

0%

Estimated time:

Description

Typing
$ ./isotovideo lsdjf

Only results in:
Can't open 'vars.json' for reading: 'No such file or directory' at qa/os-autoinst/bmwqemu.pm line 72
1672: EXIT 1

There is no warning that a command line parameter has been ignored, this is an issue with the following:
/isotovideo -d /tmp/vars.json

Intuitively I would expect /tmp/vars.json to be used as the test's parameters, instead it is ignored and the following message is returned
Can't open 'vars.json' for reading: 'No such file or directory' at qa/os-autoinst/bmwqemu.pm line 72
1734: EXIT 1

There are a number of possible actions, including:

  • A1, produce an error and help message on an unexpected command line argument
  • A2, treat the first command line argument (which does not start with '-') as the path to vars.json

Obviously A1 and A2 are not mutually exclusive.


Related issues 1 (0 open1 closed)

Related to openQA Project - action #16506: [easy hack] Use of uninitialized value with isotovideo --helpResolved2017-02-06

Actions
Actions

Also available in: Atom PDF