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
When using sub-commands it would be good idea to set this flag globally.
#[derive(Parser, Debug)] pub(crate) struct Args { #[clap(subcommand)] command: Commands, #[clap(flatten, global = true)] verbose: Verbosity, }
Above produces an error:
error: methods are not allowed for flattened entry --> src/cli/args.rs:24:10 | 24 | #[clap(flatten, global = true)] |
The text was updated successfully, but these errors were encountered:
fix!: Make logging flags global
4c0c95d
This will carry them across subcommands Fixes clap-rs#33
Clap doesn't support attributes like this on a flatten because of the complexities of communicating between derives.
However, I've been meaning to hard code these flags to be global. #34 takes care of that.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When using sub-commands it would be good idea to set this flag globally.
Above produces an error:
The text was updated successfully, but these errors were encountered: