Skip to content
Myr

Hide a few options from short '-h' 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 deea31c · Browse files · 1 file+12 added−5 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+12 added−5 removed

  • other:+12 added−5 removed

1 file+12 added−5 removed

modified:src/app.rs+12 added-5 removed
134 unmodified lines
135 .long("ignore-file")136 .takes_value(true)137 .value_name("path")138 .number_of_values(1)139 .multiple(true),139 .multiple(true)140 .hidden_short_help(true),141 )142 .arg(143 arg("color")144 .long("color")
7 unmodified lines
152 arg("threads")153 .long("threads")154 .short("j")155 .takes_value(true)155 .value_name("num"),156 .value_name("num")157 .hidden_short_help(true),158 )159 .arg(160 arg("size")161 .long("size")
24 unmodified lines
186 .takes_value(true)187 .value_name("date|dur")188 .number_of_values(1),189 )188 .arg(arg("show-errors").long("show-errors"))190 .arg(191 arg("show-errors")192 .long("show-errors")193 .hidden_short_help(true),194 )195 .arg(arg("pattern"))196 .arg(arg("path").multiple(true))197 .arg(198 arg("search-path")199 .long("search-path")200 .takes_value(true)201 .conflicts_with("path")202 .multiple(true)203 .hidden_short_help(true)204 .number_of_values(1),205 )206}207
136 unmodified lines
344 , "Enable display of filesystem errors"345 , "Enable the display of filesystem errors for situations such as insufficient permissions \346 or dead symlinks.");347 doc!(h, "search-path"341 , "Provide paths to search as flag arguments rather than positional arguments."342 , "Provide paths to search as flag arguments, preventing the usage of any positional `path` arugments.\n\348 , "(hidden)"349 , "Provide paths to search as an alternative to the positional <path> argument. \350 Changes the usage to `fd [FLAGS/OPTIONS] --search-path <path> --search-path <path2> [<pattern>]`");351 h352}