We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Options with the same name, but different number of dashes, are currently prohibited by the name validator.
ArgumentParser version: 0.3.0 Swift version: Swift version 5.3 (swiftlang-1200.0.28.1 clang-1200.0.30.1)
0.3.0
master
For example, changing the Repeat example's count property to this:
Repeat
count
@Option(name: [.long, .customLong("count", withSingleDash: true)], help: "The number of times to repeat 'phrase'.") var count: Int?
results in:
Fatal error: Validation failed for `Repeat`: - Multiple (2) `Option` or `Flag` arguments are named "count".
Either -count or --count should work for that option.
-count
--count
The error shown above.
The text was updated successfully, but these errors were encountered:
Allows single- and double-dashed args with the same name
aa39d2b
Fixes #231.
5af710c
Allows single- and double-dashed args with the same name (#232)
06c44f5
Successfully merging a pull request may close this issue.
Options with the same name, but different number of dashes, are currently prohibited by the name validator.
ArgumentParser version:
0.3.0
Swift version: Swift version 5.3 (swiftlang-1200.0.28.1 clang-1200.0.30.1)
Checklist
master
branch of this packageSteps to Reproduce
For example, changing the
Repeat
example'scount
property to this:results in:
Expected behavior
Either
-count
or--count
should work for that option.Actual behavior
The error shown above.
The text was updated successfully, but these errors were encountered: