Replies: 1 comment 1 reply
-
One option is to have separate long and brief usage messages; maybe syntactical issues should be reported with a brief usage, but any "full usage" message that goes over 1/4 screen or so might be reserved for an explicit As we move towards click groups and subcommands ... a separate |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This issue arose in
pbench-register-tool-set
andpbench-register-tool
: they both issue a (sometimes long) usage message after an error is encountered that causes the program to exit. The worry is that the error message is easy to miss.We might want to come up with criteria about when to output the usage message: maybe if the error is an error in the command line invocation itself (e.g. a wrong option or an unrecognized value for an option) then we show the usage message. If however, the error is "deeper" (i.e. the command line would be fine with other values of options, but something in the current values causes an error that aborts the run) then maybe the usage message is not needed.
WDYT?
Beta Was this translation helpful? Give feedback.
All reactions