change cli name from --show-email to --email
@@ -259,11 +259,16 @@ impl Config {
})
)
.arg(
- Arg::with_name("show-email")
+ Arg::with_name("email")
.short("E")
- .long("show-email")
+ .long("email")
.help("show the email address of each author.")
)
+ .arg(
+ Arg::with_name("hidden")
+ .long("hidden")
+ .help("Count hidden files and directories.")
+ )
.arg(
Arg::with_name("exclude")
.short("e")
@@ -273,11 +278,6 @@ impl Config {
.takes_value(true)
.help("Ignore all files & directories matching EXCLUDE."),
)
- .arg(
- Arg::with_name("hidden")
- .long("hidden")
- .help("Count hidden files and directories.")
- )
.get_matches();
let true_color = match matches.value_of("true-color") {
@@ -292,7 +292,7 @@ impl Config {
let print_languages = matches.is_present("languages");
let print_package_managers = matches.is_present("package-managers");
let iso_time = matches.is_present("isotime");
- let show_email = matches.is_present("show-email");
+ let show_email = matches.is_present("email");
let include_hidden = matches.is_present("hidden");
let output =
