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
use clap::Clap; /// Docs included #[derive(Clap)] #[clap(author, version)] struct Opts { /// Document debug #[clap(short, long)] debug: bool, /// Flatten #[clap(flatten)] thing: ThingConfig, } /// Thing CLI Configuration #[derive(Clap)] #[clap(name = "thing")] struct ThingConfig { /// Thing URI #[clap(long)] uri: String, }
cargo build
Rust: rustc 1.47.0-nightly (de521cbb3 2020-08-21)
Clap: "3.0.0-beta.1"
When compiling with a doc on the flattened thing: ThingConfig
thing: ThingConfig
error: methods and doc comments are not allowed for flattened entry --> src/clapped.rs | 45 | #[clap(flatten)] | ^^^^^^^
When compiling without it (since I can't)
error: missing documentation for the crate
Flattened options should not raise a missing docs warning.
The text was updated successfully, but these errors were encountered:
I have recently fixed this in structopt but forgot to port the fix here. Will do ASAP
Sorry, something went wrong.
CreepySkeleton
Successfully merging a pull request may close this issue.
Code
Steps to reproduce the issue
cargo build
Version
Rust: rustc 1.47.0-nightly (de521cbb3 2020-08-21)
Clap: "3.0.0-beta.1"
Actual Behavior Summary
When compiling with a doc on the flattened
thing: ThingConfig
When compiling without it (since I can't)
Expected Behavior Summary
Flattened options should not raise a missing docs warning.
The text was updated successfully, but these errors were encountered: