-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Multiple optional arguments are displayed incorrectly in help output #4847
Comments
epage
added
A-help
Area: documentation, including docs.rs, readme, examples, etc...
E-easy
Call for participation: Experience needed to fix: Easy / not much
labels
Apr 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please complete the following tasks
Rust Version
rustc 1.66.0 (69f9c33d7 2022-12-12)
Clap Version
v4.2.2
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run -- --help
Actual Behaviour
The output of
--help
is:As a side-note, there are trailing spaces in the help output.
Expected Behaviour
The output of
--help
should indicate that the second parameter is optional, i.e.:Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: