Skip to content

Commit

Permalink
using dash instead of underscore in cli arg
Browse files Browse the repository at this point in the history
  • Loading branch information
sumit2bk committed Aug 21, 2022
1 parent b055198 commit 2f5b5bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bin/oura/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ pub fn run(args: &ArgMatches) -> Result<(), Error> {
false => None,
};

let terminal_width = match args.is_present("terminal_width") {
true => Some(args.value_of_t("terminal_width")?),
let terminal_width = match args.is_present("terminal-width") {
true => Some(args.value_of_t("terminal-width")?),
false => None
};

Expand Down Expand Up @@ -159,8 +159,8 @@ pub(crate) fn command_definition<'a>() -> clap::Command<'a> {
.help("milliseconds to wait between output lines (for easier reading)"),
)
.arg(
clap::Arg::new("terminal_width")
.long("terminal_width")
clap::Arg::new("terminal-width")
.long("terminal-width")
.takes_value(true)
.help("width of the terminal"),
)
Expand Down

0 comments on commit 2f5b5bf

Please sign in to comment.