Skip to content

Commit

Permalink
fix: disable dry-run by default
Browse files Browse the repository at this point in the history
Attempting to specify `#[clap(default_value_t = false)] or other
variations resulted in this value always being true. Removing the value
causes the flag to default to false and be set to true if `--dry-run` is
included.
  • Loading branch information
justinrubek committed Mar 18, 2023
1 parent d453357 commit dfcf09e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ pub struct Args {
pub old_version: String,
pub new_version: String,

#[clap(short, long, default_value = "false")]
pub dry_run: bool,
}

0 comments on commit dfcf09e

Please sign in to comment.