Easily add a --verbose
flag to CLIs using Structopt
```rust extern crate clapverbosityflag;
// ...
struct Cli { #[structopt(flatten)] verbose: clapverbosityflag::Verbosity, } ```
By default, it'll only report errors.
Passing -v
one time also prints warnings,
-vv
enables info logging,
-vvv
debug,
and -vvvv
trace.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.