Update long 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 4731dc6 · Browse files · 2 files·+31 added−32 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+31 added−32 removed
- other:+31 added−32 removed
Provenance
- Commit
d8da6ec- Tree
b12556f- Author
sharkdp <davidpeter@web.de>- Committer
sharkdp <davidpeter@web.de>- Parent
4731dc6
2 files changed+31 added−32 removed
modified:src/app.rs+28 added-29 removed
85 unmodified lines86 fn usage() -> HashMap<&'static str, Help> {87 let mut h = HashMap::new();88 doc!(h, "hidden"89 , "Search hidden files and directories"90- , "Also include hidden directories and files in the search results (default: hidden files\91- and directories are skipped).");90+ , "Include hidden directories and files in the search results (default: hidden files \91+ and directories are skipped).");92 doc!(h, "no-ignore"93 , "Do not respect .(git)ignore files"94- , "Show search results from files and directories that would otherwise be ignored by\94+ , "Show search results from files and directories that would otherwise be ignored by \95 '.*ignore' files.");96 doc!(h, "case-sensitive"97 , "Case-sensitive search (default: smart case)"98- , "Define your pattern as case sensitive. By default, fd uses 'smart case' for queries.\99- This option disables smart case.");98+ , "Perform a case-sensitive search. By default, fd uses case-insensitive searches, \99+ unless the pattern contains both upper- and lowercase characters (smart case).");100 doc!(h, "absolute-path"101 , "Show absolute instead of relative paths"102- , "Shows the result of a pattern match as an absolute path instead of relative path.");102+ , "Shows the full path starting from the root as opposed to relative paths.");103 doc!(h, "follow"104 , "Follow symbolic links"105 , "By default, fd does not descent into symlinked directories. Using this flag, symbolic \106- links are also traversed.");106+ links are also traversed.");107 doc!(h, "full-path"108 , "Search full path (default: file-/dirname only)"109- , "Searches the full path of directory. By default, fd only searches the last part of \110- the path (the file name or the directory name).");109+ , "By default, the search pattern is only matched against the filename (or directory \110+ name). Using this flag, the pattern is matched against the full path.");111 doc!(h, "null_separator"112 , "Separate results by the null character"113- , "Separate search results by the null character (instead of newlines). This is useful \114- for piping results to 'xargs'.");113+ , "Separate search results by the null character (instead of newlines). Useful for \114+ piping results to 'xargs'.");115 doc!(h, "depth"116 , "Set maximum search depth (default: none)"117- , "Set the limit of the maximum search depth in a pattern match query. By default, there\118- is no limit on the search depth.");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)"121- , "Filter the search by type:\n\122- f file for file\n\123- d directory for directory\n\124- s symlink for symbolic links");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");125 doc!(h, "extension"126 , "Filter by file extension"127- , "Only show search results with a specific file extension.");127+ , "(Additionally) filter search results by their file extension.");128 doc!(h, "color"129- , "When to use color in the output:\n\130- never, auto, always (default: auto)"131- , "Declare when to use color for the pattern match output:\n\132- auto (default)\n\133- never\n\134- always");129+ , "When to use colors: never, *auto*, always"130+ , "Declare when to use color for the pattern match output:\n \131+ 'auto': show colors if the output goes to an interactive console (default)\n \132+ 'never': do not use colorized output\n \133+ 'always': always use colorized output");134 doc!(h, "threads"136- , "Set number of threads to use for searching:\n\137- (default: number of available CPU cores)");135+ , "Set number of threads to use for searching"136+ , "Set number of threads to use for searching (default: number of available CPU cores)");137 doc!(h, "max-buffer-time"138 , "the time (in ms) to buffer, before streaming to the console"139 , "Amount of time in milliseconds to buffer, before streaming the search results to\141- the console.");140+ the console.");141 doc!(h, "pattern"142 , "the search pattern, a regular expression (optional)");143 doc!(h, "path"144 , "the root directory for the filesystem search (optional)"146- , "The root directory where you want to do the filesystem search of the pattern.\147- When not present, the default is to use the current working directory.");145+ , "The directory where the filesystem search is rooted (optional). \146+ If omitted, search the current working directory.");147 148 h149 }modified:README.md+3 added-3 removed
151 unmodified lines152 -V, --version Prints version information153 154 OPTIONS:155 -d, --max-depth <depth> Set maximum search depth (default: none)156- -t, --type <file-type> Filter by type: f(ile), d(irectory), s(ymlink)156+ -t, --type <filetype> Filter by type: f(ile), d(irectory), s(ymlink)157 -e, --extension <ext> Filter by file extension158- -c, --color <color> When to use color in the output:158+ -c, --color <when> When to use color in the output:159 never, auto, always (default: auto)160- -j, --threads <threads> Set number of threads to use for searching160+ -j, --threads <num> Set number of threads to use for searching:161 (default: number of available CPU cores)162 163 ARGS:164 <pattern> the search pattern, a regular expression (optional)183 unmodified lines