forked from clap-rs/clap-verbosity-flag
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
strcutopt lets you define the help string via doc-comments. Recently, they cleaned this up which introduced a bug where a chained struct wins out over the parent. So moving our doc-comment to the lib to workaround it. We should have the majority of the documentation on the lib anyways. Fixed clap-rs#20
- Loading branch information
Ed Page
committed
Jan 16, 2020
1 parent
c75ce35
commit 0b97928
Showing
2 changed files
with
31 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use clap_verbosity_flag::Verbosity; | ||
use structopt::StructOpt; | ||
|
||
/// Foo | ||
#[derive(Debug, StructOpt)] | ||
struct Cli { | ||
#[structopt(flatten)] | ||
verbose: Verbosity, | ||
} | ||
|
||
fn main() { | ||
Cli::from_args(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters