Skip to content
Myr

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

4 files+11 added−11 removed

modified:doc/fd.1+1 added-1 removed
64 unmodified lines
65.TP66.B \-a, \-\-absolute\-path67Shows the full path starting from the root as opposed to relative paths.68.TP69.B \-l, \-\-list69.B \-l, \-\-list\-details70Use a detailed listing format like 'ls -l'. This is basically an alias71for '--exec-batch ls -l' with some additional 'ls' options. This can be used72to see more metadata, to show symlink targets, to achieve a deterministic73sort order and to avoid duplicate search results when using multiple search paths.
204 unmodified lines
modified:src/app.rs+7 added-7 removed
107 unmodified lines
108 .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 lines
131 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 lines
180 .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 line
190 .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 lines
350 , "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 lines
modified:src/main.rs+1 added-1 removed
165 unmodified lines
166 })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();173174 Some(
150 unmodified lines
modified:CHANGELOG.md+2 added-2 removed
1# Upcoming release23## Features45- 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