Skip to content

Commit aa80dc9

Browse files
committedJun 18, 2021
Shorter CLI flags
--no-merge-commits to --no-merges --no-color-palette to --no-palette
1 parent fadf515 commit aa80dc9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

Diff for: ‎src/onefetch/cli.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@ impl Cli {
199199
.help("Turns off bold formatting."),
200200
)
201201
.arg(
202-
Arg::with_name("no-color-palette")
203-
.long("no-color-palette")
202+
Arg::with_name("no-palette")
203+
.long("no-palette")
204204
.help("Hides the color palette."),
205205
)
206206
.arg(
207-
Arg::with_name("no-merge-commits")
208-
.long("no-merge-commits")
207+
Arg::with_name("no-merges")
208+
.long("no-merges")
209209
.help("Ignores merge commits."),
210210
)
211211
.arg(
@@ -262,8 +262,8 @@ impl Cli {
262262
_ => unreachable!(),
263263
};
264264
let no_bold = matches.is_present("no-bold");
265-
let no_merges = matches.is_present("no-merge-commits");
266-
let no_color_palette = matches.is_present("no-color-palette");
265+
let no_merges = matches.is_present("no-merges");
266+
let no_color_palette = matches.is_present("no-palette");
267267
let print_languages = matches.is_present("languages");
268268
let print_package_managers = matches.is_present("package-managers");
269269
let iso_time = matches.is_present("isotime");

0 commit comments

Comments
 (0)