Project

General

Profile

Actions

Feature #5940

closed

teuthology: usage output, error messages could be more helpful

Added by Tamilarasi muthamizhan over 10 years ago. Updated over 10 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:

Description

Teuthology error logging could be better,

for ex:
tamil@ubuntu:~/next/teuthology$ ./virtualenv/bin/teuthology-lock --list burnupi27 --summary
usage: teuthology-lock [-h] [-v]
(--list | --list-targets | --lock | --unlock | --lock-many NUM_TO_LOCK | --update | --summary)
[-a] [--owner OWNER] [-f] [--desc DESC]
[--desc-pattern DESC_PATTERN]
[--machine-type MACHINE_TYPE] [--status {up,down}]
[--locked {true,false}] [--brief] [-t TARGETS]
[--os-type OS_TYPE]
[MACHINE [MACHINE ...]]
teuthology-lock: error: argument --summary: not allowed with argument --list

while the above error says, summary is not allowed with list, it would be nice, if it also mentions, --brief is required with list.

Actions

Also available in: Atom PDF