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
$ target/debug/clap-test -h
Clap test
USAGE:
clap-test [FLAGS] <INPUT>... [--]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<INPUT>...
I would expect usage to show clap-test [FLAGS] [--] <INPUT>....
The text was updated successfully, but these errors were encountered:
Actually in your example, the [--] shouldn't be there at all. The [--] only appears in the usage string when there are options which can accept multiple values, and positional arguments where aren't required. This is in order to prompt the user and potentially prevent something like
$ myprog --option val1 val2 "am I positional1 or val3?"
I would expect usage to show
clap-test [FLAGS] [--] <INPUT>...
.The text was updated successfully, but these errors were encountered: