From 59c27baf0f1ed8ac441d316946ef37d28b23281b Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Tue, 17 Sep 2019 13:57:10 -0600 Subject: [PATCH] Expand help for `-u`, add to manpage --- doc/fd.1 | 3 +++ src/app.rs | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/fd.1 b/doc/fd.1 index dfd085c..843d795 100644 --- a/doc/fd.1 +++ b/doc/fd.1 @@ -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 diff --git a/src/app.rs b/src/app.rs index 30d9237..dd2811a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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 <+->.\n \