-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
#[clap(flatten)]
takes top-level docstring from the flattened struct, not the struct being flattened into
#2527
Comments
pksunkara
changed the title
#[clap(flatten)] takes top-level docstring from the flattened struct, not the struct being flattened into
Jun 8, 2021
#[clap(flatten)]
takes top-level docstring from the flattened struct, not the struct being flattened into
@pksunkara can I take that to mean that this is definitely not intended behavior? |
Yup. |
What if |
pickfire
added a commit
to pickfire/clap
that referenced
this issue
Jun 10, 2021
pickfire
added a commit
to pickfire/clap
that referenced
this issue
Jun 10, 2021
pickfire
added a commit
to pickfire/clap
that referenced
this issue
Jun 10, 2021
pksunkara
pushed a commit
that referenced
this issue
Aug 11, 2021
2 tasks
This was referenced May 8, 2024
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.52.0-nightly (e37a13cc3 2021-02-28)
Clap Version
3.0.0-beta.2
Minimal reproducible code
Steps to reproduce the bug with the above code
Actual Behaviour
Expected Behaviour
Additional Context
It's possible I suppose that this is intentional, but it really seems like surprising behavior to me - if it is intentional, I'd love the option to turn it off so I can still add a (developer-facing) docstring to Flattened.
Debug Output
The text was updated successfully, but these errors were encountered: