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
nazar-pc opened this issue
Apr 2, 2022
· 1 comment
Labels
A-helpArea: documentation, including docs.rs, readme, examples, etc...C-bugCategory: Updating dependenciesE-easyCall for participation: Experience needed to fix: Easy / not much
Users are sometimes confused by help message generated by Clap in case -- was used where it was not expected:
$ ./app -- --dev --tmp
error: Found argument '--dev' which wasn't expected, or isn't valid in this context
If you tried to supply `--dev` as a value rather than a flag, use `-- --dev`
Describe the solution you'd like
In this particular case the suggestion should be to remove -- instead of adding one more, like this:
$ ./app -- --dev --tmp
error: Found value '--dev' which wasn't expected, or isn't valid in this context
There is an flag with the same name, try to remove `--`
Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
epage
added
C-bug
Category: Updating dependencies
A-help
Area: documentation, including docs.rs, readme, examples, etc...
E-easy
Call for participation: Experience needed to fix: Easy / not much
and removed
C-enhancement
Category: Raise on the bar on expectations
labels
Apr 4, 2022
A-helpArea: documentation, including docs.rs, readme, examples, etc...C-bugCategory: Updating dependenciesE-easyCall for participation: Experience needed to fix: Easy / not much
Please complete the following tasks
Clap Version
3.1.6
Describe your use case
Users are sometimes confused by help message generated by Clap in case
--
was used where it was not expected:Describe the solution you'd like
In this particular case the suggestion should be to remove
--
instead of adding one more, like this:Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: