Skip to content

Commit

Permalink
Update CLI struct to use newer StructOpt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed Dec 27, 2018
1 parent 27937ac commit 4f0a873
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ use structopt::StructOpt;
raw(global_settings = "&[AppSettings::ColoredHelp]")
)]
struct Cli {
#[structopt(short = "v", long = "verbose")]
#[structopt(short, long)]
/// Verbose output
verbose: bool,
#[structopt(short = "p", long = "progress")]
#[structopt(short, long)]
/// Disable the progress bar
progress: bool,
#[structopt(
name = "directory",
help = "Directory to parse commits",
parse(from_os_str)
)]
#[structopt(parse(from_os_str))]
/// Directory to parse commits from
directory: Option<PathBuf>,
}

Expand Down

0 comments on commit 4f0a873

Please sign in to comment.