Expand help for `-u`, add to manpage

This commit is contained in:
Nathan Henrie 2019-09-17 13:57:10 -06:00 committed by David Peter
parent 33f385692d
commit 59c27baf0f
2 changed files with 6 additions and 2 deletions

3
doc/fd.1 vendored
View File

@ -38,6 +38,9 @@ or
.I .fdignore
files.
.TP
.B \-u, \-\-unrestricted
Alias for '--no-ignore'. Can be repeated; '-uu' is an alias for '--no-ignore --hidden'.
.TP
.B \-\-no\-ignore\-vcs
Show search results from files and directories that would otherwise be ignored by
.I .gitignore

View File

@ -52,6 +52,7 @@ pub fn build_app() -> App<'static, 'static> {
.arg(
arg("rg-alias-hidden-ignore")
.short("u")
.long("unrestricted")
.multiple(true)
.hidden_short_help(true),
)
@ -361,8 +362,8 @@ fn usage() -> HashMap<&'static str, Help> {
, "The directory where the filesystem search is rooted (optional). \
If omitted, search the current working directory.");
doc!(h, "rg-alias-hidden-ignore"
, "Alias for no-ignore and/or hidden"
, "Alias for no-ignore ('u') and no-ignore and hidden ('uu')");
, ""
, "Alias for '--no-ignore'. Can be repeated; '-uu' is an alias for '--no-ignore --hidden'.");
doc!(h, "size"
, "Limit results based on the size of files."
, "Limit results based on the size of files using the format <+-><NUM><UNIT>.\n \