Switch symlink arg from 's' to 'l' (#83)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
closes #80
authored by Jean-Christophe Petkovich · committed by David Peter · parent 68a85c7 · Browse files · 4 files·+6 added−6 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+6 added−6 removed
- tests:+1 added−1 removed
- other:+5 added−5 removed
Provenance
- Commit
affe419- Tree
fff18dc- Author
Jean-Christophe Petkovich <jcpetkovich@gmail.com>- Committer
David Peter <sharkdp@users.noreply.github.com>- Parent
68a85c7
4 files changed+6 added−6 removed
modified:src/app.rs+3 added-3 removed
44 unmodified lines45 .long("type")46 .short("t")47 .takes_value(true)48 .value_name("filetype")49- .possible_values(&["f", "file", "d", "directory", "s", "symlink"])49+ .possible_values(&["f", "file", "d", "directory", "l", "symlink"])50 .hide_possible_values(true),51 )52 .arg(53 arg("extension")62 unmodified lines116 , "Set maximum search depth (default: none)"117 , "Limit the directory traversal to a given depth. By default, there is no limit \118 on the search depth.");119 doc!(h, "file-type"120- , "Filter by type: f(ile), d(irectory), s(ymlink)"120+ , "Filter by type: f(ile), d(irectory), (sym)l(ink)"121 , "Filter the search by type:\n \122 'f' or 'file': regular files\n \123 'd' or 'directory': directories\n \124- 's' or 'symlink': symbolic links");124+ 'l' or 'symlink': symbolic links");125 doc!(h, "extension"126 , "Filter by file extension"127 , "(Additionally) filter search results by their file extension.");128 doc!(h, "color"21 unmodified linesmodified:src/main.rs+1 added-1 removed
430 unmodified lines431 ls_colors: ls_colors,432 file_type: match matches.value_of("file-type") {433 Some("f") | Some("file") => FileType::RegularFile,434 Some("d") | Some("directory") => FileType::Directory,435- Some("s") | Some("symlink") => FileType::SymLink,435+ Some("l") | Some("symlink") => FileType::SymLink,436 _ => FileType::Any,437 },438 extension: matches.value_of("extension")439 .map(|e| e.trim_left_matches('.').to_lowercase()),15 unmodified linesmodified:tests/tests.rs+1 added-1 removed
293 unmodified lines294 one/two/three295 one/two/three/directory_foo");296 297 te.assert_output(298- &["--type", "s"],298+ &["--type", "l"],299 "symlink");300 }301 302 /// File extension (--extension)22 unmodified linesmodified:README.md+1 added-1 removed
149 unmodified lines150 -V, --version Prints version information151 152 OPTIONS:153 -d, --max-depth <depth> Set maximum search depth (default: none)154- -t, --type <filetype> Filter by type: f(ile), d(irectory), s(ymlink)154+ -t, --type <filetype> Filter by type: f(ile), d(irectory), (sym)l(ink)155 -e, --extension <ext> Filter by file extension156 -c, --color <when> When to use color in the output:157 never, auto, always (default: auto)158 -j, --threads <num> Set number of threads to use for searching:167 unmodified lines