Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(error): Polish --flag=bad-value error #4269

Merged
merged 3 commits into from Sep 27, 2022
Merged

fix(error): Polish --flag=bad-value error #4269

merged 3 commits into from Sep 27, 2022

Conversation

epage
Copy link
Member

@epage epage commented Sep 27, 2022

This error was untested and didn't fit the style of our other errors

error: The value 'value' was provided to '--flag' but it wasn't expecting any more values

example --other <path>...

For more information try '--help'
  • It should show a usage type
  • It should show the flag in the usage so people can scan more quickly for what is wrong

This supersedes #4268

@epage epage merged commit 9cd1939 into clap-rs:master Sep 27, 2022
@epage epage deleted the usage branch September 27, 2022 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant