Skip to content

Commit

Permalink
Add verbose flag to subcommands as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Aug 2, 2017
1 parent 45da248 commit 9feb07b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ pub fn build_cli() -> App<'static, 'static> {
.subcommand(SubCommand::with_name("split")
.about("Split a secret into shares")
.visible_alias("s")
.arg(Arg::with_name("verbose")
.short("v")
.long("verbose")
.help("Enable verbose mode"))
.arg(Arg::with_name("k")
.short("k")
.required(true)
Expand Down Expand Up @@ -50,6 +54,10 @@ pub fn build_cli() -> App<'static, 'static> {
.subcommand(SubCommand::with_name("recover")
.about("Recover the secret from the shares")
.visible_alias("r")
.arg(Arg::with_name("verbose")
.short("v")
.long("verbose")
.help("Enable verbose mode"))
.arg(Arg::with_name("SHARES")
.required(true)
.takes_value(true)
Expand Down

0 comments on commit 9feb07b

Please sign in to comment.