You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if it's me doing something wrong, but it looks like metavar in specified in cli doesn't get displayed when invoked with --help, or failed parsing for that matter.
It is critical for positional arguments, otherwise there is no way to know why parsing has failed or how to properly use the command.
foo:
etc/spec:
type: numbercli:
input: optionmetavar: FOO_METAVARrequired: truelong: foohelp: "foo does something cool, but doesn't have it FOO_METAVAR displayed"commands:
- run
Results in:
$ my-cmd run --help
Usage: my-cmd run --foo ARG
Available options:
-h,--help Show this help text
--foo ARG foo does something cool, but doesn't have it
FOO_METAVAR displayed
The text was updated successfully, but these errors were encountered:
Not sure if it's me doing something wrong, but it looks like
metavar
in specified incli
doesn't get displayed when invoked with--help
, or failed parsing for that matter.It is critical for positional
argument
s, otherwise there is no way to know why parsing has failed or how to properly use the command.Results in:
The text was updated successfully, but these errors were encountered: