-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Default shown in usage is incorrect when the option is supplied #1181
Comments
This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else. |
This looks like a duplicate of #1206, but I would have to dive into the code to say that with confidence. |
This issue or PR has been bumped and is no longer marked as stale! Feel free to bump it again in the future, if it's still relevant. |
This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else. |
Closing this as it has become stale. |
Unable to reproduce. |
my urfave/cli version is
2.1.1
Checklist
Dependency Management
Describe the bug
If a command fails due to invalid usage, values assigned to valid options are used to populate the defaults.
To reproduce
foo
fizz
and mark it as required.bang
with the default value of1
.foo --bang 2
Observed behavior
The
default
in the usage text will show(default: 2)
Expected behavior
The
default
in the usage text will show(default: 1)
The text was updated successfully, but these errors were encountered: