Re-structure '--help' text
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by sharkdp · committed by sharkdp · parent 4b61bea · Browse files · 1 file·+38 added−34 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+38 added−34 removed
- other:+38 added−34 removed
Provenance
- Commit
7399558- Tree
477f40c- Author
sharkdp <davidpeter@web.de>- Committer
sharkdp <davidpeter@web.de>- Parent
4b61bea
1 file changed+38 added−34 removed
modified:src/main.rs+38 added-34 removed
358 unmodified lines359 .version(crate_version!())360 .usage("fd [FLAGS/OPTIONS] [<pattern>] [<path>]")361 .setting(AppSettings::ColoredHelp)362 .setting(AppSettings::DeriveDisplayOrder)363- .arg(Arg::with_name("case-sensitive")364- .long("case-sensitive")365- .short("s")366- .help("Case-sensitive search (default: smart case)"))367- .arg(Arg::with_name("full-path")368- .long("full-path")369- .short("p")370- .help("Search full path (default: file-/dirname only)"))363 .arg(Arg::with_name("hidden")364 .long("hidden")365 .short("H")366 .help("Search hidden files and directories"))367 .arg(Arg::with_name("no-ignore")368 .long("no-ignore")369 .short("I")370 .help("Do not respect .(git)ignore files"))371+ .arg(Arg::with_name("case-sensitive")372+ .long("case-sensitive")373+ .short("s")374+ .help("Case-sensitive search (default: smart case)"))375+ .arg(Arg::with_name("absolute-path")376+ .long("absolute-path")377+ .short("a")378+ .help("Show absolute instead of relative paths"))379 .arg(Arg::with_name("follow")380 .long("follow")381 .short("L")382- .help("Follow symlinks")383- .alias("dereference"))382+ .alias("dereference")383+ .help("Follow symbolic links"))384+ .arg(Arg::with_name("full-path")385+ .long("full-path")386+ .short("p")387+ .help("Search full path (default: file-/dirname only)"))388 .arg(Arg::with_name("null_separator")389 .long("print0")390 .short("0")391 .help("Separate results by the null character"))388- .arg(Arg::with_name("absolute-path")389- .long("absolute-path")390- .short("a")391- .help("Show absolute instead of relative paths"))392- .arg(Arg::with_name("color")393- .long("color")394- .short("c")395- .takes_value(true)396- .possible_values(&["never", "auto", "always"])397- .help("When to use color in the output. The default is auto."))392 .arg(Arg::with_name("depth")393 .long("max-depth")394 .short("d")395 .takes_value(true)396 .help("Set maximum search depth (default: none)"))397+ .arg(Arg::with_name("file-type")398+ .long("type")399+ .short("t")400+ .takes_value(true)401+ .possible_values(&["f", "file", "d", "directory", "s", "symlink"])402+ .hide_possible_values(true)403+ .help("Filter by type: f(ile), d(irectory), s(ymlink)"))404+ .arg(Arg::with_name("extension")405+ .long("extension")406+ .short("e")407+ .takes_value(true)408+ .value_name("ext")409+ .help("Filter by file extension"))410+ .arg(Arg::with_name("color")411+ .long("color")412+ .short("c")413+ .takes_value(true)414+ .possible_values(&["never", "auto", "always"])415+ .hide_possible_values(true)416+ .help("When to use color in the output:\n\417+ never, auto, always (default: auto)"))418 .arg(Arg::with_name("threads")419 .long("threads")420 .short("j")421 .takes_value(true)407- .help("The number of threads used for searching"))422+ .help("Set number of threads to use for searching"))423 .arg(Arg::with_name("max-buffer-time")424 .long("max-buffer-time")425 .takes_value(true)411- .help("the time (in ms) to buffer, before streaming to the console")412- .hidden(true))426+ .hidden(true)427+ .help("the time (in ms) to buffer, before streaming to the console"))428 .arg(Arg::with_name("pattern")429 .help("the search pattern, a regular expression (optional)"))430 .arg(Arg::with_name("path")431 .help("the root directory for the filesystem search (optional)"))417- .arg(Arg::with_name("file-type")418- .help("The type of file to search for")419- .long("type")420- .short("t")421- .takes_value(true)422- .possible_values(&["f", "file", "d", "directory", "s", "symlink"]))423- .arg(Arg::with_name("extension")424- .help("The file extension to search for")425- .long("extension")426- .short("e")427- .takes_value(true))432 .get_matches();433 434 // Get the search pattern435 let empty_pattern = String::new();99 unmodified lines