Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixes a bug where using AppSettings::AllowHyphenValues would all…
…ow invalid arguments even when there is no way for them to be valid Prior to this commit, using `AppSettings::AllowHyphenValues` would allow ANY argument to pass, even if there was no way it could be valid. Imagine a CLI with only a single flag (i.e. *no value*) `--flag`, but this setting is set. The following was valid: ``` $ prog hello ``` This commit fixes that by creating an UnknownArgument error unless the unknown argument/value in question could legally be parsed as a value to a valid argument. Closes #1066
- Loading branch information