We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@Option
The error message when giving an option label, but no values, is incorrect for @Option array properties. For example, with this command:
@main struct Example: ParsableCommand { @Option(parsing: .upToNextOption) var test: [String] = [] mutating func run() throws { print(test) } }
$ example --test Error: Missing value for '--test <test>'
$ example --test Error: Unknown option '--test'. Did you mean '--test'?
main
ArgumentParser version: main Swift version: swift-driver version: 1.45.2 Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
The text was updated successfully, but these errors were encountered:
Fixed by #435.
Sorry, something went wrong.
No branches or pull requests
The error message when giving an option label, but no values, is incorrect for
@Option
array properties. For example, with this command:Expected behavior
Actual behavior
Checklist
main
branch of this packageArgumentParser version:
main
Swift version: swift-driver version: 1.45.2 Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
The text was updated successfully, but these errors were encountered: