update args descriptions

This commit is contained in:
Neel Chotai
2020-02-29 21:32:00 +00:00
parent 26ae050f16
commit 795d91237d
+9 -9
View File
@@ -78,7 +78,7 @@ fn main() {
Arg::with_name("display_full_paths") Arg::with_name("display_full_paths")
.short("p") .short("p")
.long("full-paths") .long("full-paths")
.help("If set sub directories will not have their path shortened"), .help("Subdirectories will not have their path shortened"),
) )
.arg( .arg(
Arg::with_name("ignore_directory") Arg::with_name("ignore_directory")
@@ -87,37 +87,37 @@ fn main() {
.takes_value(true) .takes_value(true)
.number_of_values(1) .number_of_values(1)
.multiple(true) .multiple(true)
.help("Exclude any file or directory with this name."), .help("Exclude any file or directory with this name"),
) )
.arg( .arg(
Arg::with_name("limit_filesystem") Arg::with_name("limit_filesystem")
.short("x") .short("x")
.long("limit-filesystem") .long("limit-filesystem")
.help("Only count the files and directories in the same filesystem as the supplied directory"), .help("Only count the files and directories on the same filesystem as the supplied directory"),
) )
.arg( .arg(
Arg::with_name("display_apparent_size") Arg::with_name("display_apparent_size")
.short("s") .short("s")
.long("apparent-size") .long("apparent-size")
.help("If set will use file length. Otherwise we use blocks"), .help("Use file length instead of blocks"),
) )
.arg( .arg(
Arg::with_name("reverse") Arg::with_name("reverse")
.short("r") .short("r")
.long("reverse") .long("reverse")
.help("If applied tree will be printed upside down (biggest highest)"), .help("Print tree upside down (biggest highest)"),
) )
.arg( .arg(
Arg::with_name("no_colors") Arg::with_name("no_colors")
.short("c") .short("c")
.long("no_colors") .long("no-colors")
.help("If applied no colors will be printed (normally largest directories are marked in red"), .help("No colors will be printed (normally largest directories are colored)"),
) )
.arg( .arg(
Arg::with_name("no_bars") Arg::with_name("no_bars")
.short("b") .short("b")
.long("no_percent_bars") .long("no-percent-bars")
.help("If applied no percent bars or percents will be displayed"), .help("No percent bars or percentages will be displayed"),
) )
.arg(Arg::with_name("inputs").multiple(true)) .arg(Arg::with_name("inputs").multiple(true))
.get_matches(); .get_matches();