Skip to content

Commit

Permalink
Shorter CLI flags
Browse files Browse the repository at this point in the history
--no-merge-commits to --no-merges
--no-color-palette to --no-palette
  • Loading branch information
o2sh committed Jun 18, 2021
1 parent fadf515 commit aa80dc9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/onefetch/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ impl Cli {
.help("Turns off bold formatting."),
)
.arg(
Arg::with_name("no-color-palette")
.long("no-color-palette")
Arg::with_name("no-palette")
.long("no-palette")
.help("Hides the color palette."),
)
.arg(
Arg::with_name("no-merge-commits")
.long("no-merge-commits")
Arg::with_name("no-merges")
.long("no-merges")
.help("Ignores merge commits."),
)
.arg(
Expand Down Expand Up @@ -262,8 +262,8 @@ impl Cli {
_ => unreachable!(),
};
let no_bold = matches.is_present("no-bold");
let no_merges = matches.is_present("no-merge-commits");
let no_color_palette = matches.is_present("no-color-palette");
let no_merges = matches.is_present("no-merges");
let no_color_palette = matches.is_present("no-palette");
let print_languages = matches.is_present("languages");
let print_package_managers = matches.is_present("package-managers");
let iso_time = matches.is_present("isotime");
Expand Down

0 comments on commit aa80dc9

Please sign in to comment.