Skip to content

Commit 6d032da

Browse files
committed
change cli name from --show-email to --email
1 parent 8a9cb2d commit 6d032da

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/cli.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,17 @@ impl Config {
258258
.map_err(|e| e.to_string())
259259
})
260260
)
261-
.arg(
262-
Arg::with_name("show-email")
263-
.short("E")
264-
.long("show-email")
265-
.help("show the email address of each author.")
266-
)
261+
.arg(
262+
Arg::with_name("email")
263+
.short("E")
264+
.long("email")
265+
.help("show the email address of each author.")
266+
)
267+
.arg(
268+
Arg::with_name("hidden")
269+
.long("hidden")
270+
.help("Count hidden files and directories.")
271+
)
267272
.arg(
268273
Arg::with_name("exclude")
269274
.short("e")
@@ -273,11 +278,6 @@ impl Config {
273278
.takes_value(true)
274279
.help("Ignore all files & directories matching EXCLUDE."),
275280
)
276-
.arg(
277-
Arg::with_name("hidden")
278-
.long("hidden")
279-
.help("Count hidden files and directories.")
280-
)
281281
.get_matches();
282282

283283
let true_color = match matches.value_of("true-color") {
@@ -292,7 +292,7 @@ impl Config {
292292
let print_languages = matches.is_present("languages");
293293
let print_package_managers = matches.is_present("package-managers");
294294
let iso_time = matches.is_present("isotime");
295-
let show_email = matches.is_present("show-email");
295+
let show_email = matches.is_present("email");
296296
let include_hidden = matches.is_present("hidden");
297297

298298
let output =

0 commit comments

Comments
 (0)