Rename --list to --list-details
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by sharkdp · committed by David Peter · parent da5cd12 · Browse files · 4 files·+11 added−11 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+11 added−11 removed
- other:+11 added−11 removed
Provenance
- Commit
c9dc617- Tree
c97b4c5- Author
sharkdp <davidpeter@web.de>- Committer
David Peter <sharkdp@users.noreply.github.com>- Parent
da5cd12
4 files changed+11 added−11 removed
modified:doc/fd.1+1 added-1 removed
64 unmodified lines65 .TP66 .B \-a, \-\-absolute\-path67 Shows the full path starting from the root as opposed to relative paths.68 .TP69-.B \-l, \-\-list69+.B \-l, \-\-list\-details70 Use a detailed listing format like 'ls -l'. This is basically an alias71 for '--exec-batch ls -l' with some additional 'ls' options. This can be used72 to see more metadata, to show symlink targets, to achieve a deterministic73 sort order and to avoid duplicate search results when using multiple search paths.204 unmodified linesmodified:src/app.rs+7 added-7 removed
107 unmodified lines108 .short("a")109 .overrides_with("absolute-path"),110 )111 .arg(112- arg("list")113- .long("list")112+ arg("list-details")113+ .long("list-details")114 .short("l")115 .conflicts_with("absolute-path"),116 )117 .arg(13 unmodified lines131 arg("null_separator")132 .long("print0")133 .short("0")134 .overrides_with("print0")135- .conflicts_with("list"),135+ .conflicts_with("list-details"),136 )137 .arg(arg("depth").long("max-depth").short("d").takes_value(true))138 // support --maxdepth as well, for compatibility with rg139 .arg(40 unmodified lines180 .min_values(1)181 .allow_hyphen_values(true)182 .value_terminator(";")183 .value_name("cmd")184- .conflicts_with("list"),184+ .conflicts_with("list-details"),185 )186 .arg(187 arg("exec-batch")188 .long("exec-batch")1 unmodified line190 .min_values(1)191 .allow_hyphen_values(true)192 .value_terminator(";")193 .value_name("cmd")194- .conflicts_with_all(&["exec", "list"]),194+ .conflicts_with_all(&["exec", "list-details"]),195 )196 .arg(197 arg("exclude")198 .long("exclude")151 unmodified lines350 , "Treat the pattern as a literal string instead of a regular expression.");351 doc!(h, "absolute-path"352 , "Show absolute instead of relative paths"353 , "Shows the full path starting from the root as opposed to relative paths.");354- doc!(h, "list"355- , "Use a detailed listing format"354+ doc!(h, "list-details"355+ , "Show details like permissions, owner, size and modification time."356 , "Use a detailed listing format like 'ls -l'. This is basically an alias \357 for '--exec-batch ls -l' with some additional 'ls' options. This can be used \358 to see more metadata, to show symlink targets, to achieve a deterministic \359 sort order and to avoid duplicate search results when using multiple search paths.");150 unmodified linesmodified:src/main.rs+1 added-1 removed
165 unmodified lines166 })167 })168 })169 .or_else(|| {170- if matches.is_present("list") {170+ if matches.is_present("list-details") {171 let color = matches.value_of("color").unwrap_or("auto");172 let color_arg = ["--color=", color].concat();173 174 Some(150 unmodified linesmodified:CHANGELOG.md+2 added-2 removed
1 # Upcoming release2 3 ## Features4 5-- Add a new `-l`/`--list` option to show more details about the search results. This is basically6- an alias for `--exec-batch ls -l` with some additional `ls` options.5+- Add a new `-l`/`--list-details` option to show more details about the search results. This is6+ basically an alias for `--exec-batch ls -l` with some additional `ls` options.7 This can be used in order to:8 * see metadata like permissions, owner, file size, modification times (#491)9 * see symlink targets (#482)10 * achieve a deterministic output order (#324, #196, #159)418 unmodified lines