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
Given an example app like:
if CommandLine.arguments.count == 1 { CommandLine.arguments += [ "create", "--help" ] } let app = Group { app in app.command("create", Argument<String>("First Name", description: "The user's first name"), Argument<String>("Last Name", description: "The user's last name"), { fn, ln in print("fn: \(fn), ln: \(ln)") }) } app.run()
The help printed is just:
Usage: $ ./App <First Name> <Last Name>
I think it's weird that the Argument constructor takes a description yet it never gets displayed.
Argument
I think maybe it should instead:
Usage: $ ./App create <First Name> <Last Name> Arguments: <First Name> - The user's first name. <Last Name> - The user's last name.
Would you be willing to accept a PR on this?
The text was updated successfully, but these errors were encountered:
Alternatively I'd use an Option but you can't specify an Option that has no default value and is 'required'.
Option
Sorry, something went wrong.
Yes, we should start printing the argument descriptions. This is something I never got round to doing.
1247b28
No branches or pull requests
Given an example app like:
The help printed is just:
I think it's weird that the
Argument
constructor takes a description yet it never gets displayed.I think maybe it should instead:
Would you be willing to accept a PR on this?
The text was updated successfully, but these errors were encountered: