From c001dd47a754c3edd1b7f84061950f31a24ac148 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Wed, 1 Jan 2020 11:21:30 +0100 Subject: [PATCH] Hide --one-file-system from the short help text --- README.md | 1 - src/app.rs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index eb32da8..6798f9a 100644 --- a/README.md +++ b/README.md @@ -294,7 +294,6 @@ FLAGS: -F, --fixed-strings Treat the pattern as a literal string -a, --absolute-path Show absolute instead of relative paths -L, --follow Follow symbolic links - --one-file-system Don't cross file system boundaries (only Unix/Windows) -p, --full-path Search full path (default: file-/dirname only) -0, --print0 Separate results by the null character -h, --help Prints help information diff --git a/src/app.rs b/src/app.rs index 7b2df57..8be6f94 100644 --- a/src/app.rs +++ b/src/app.rs @@ -291,7 +291,8 @@ pub fn build_app() -> App<'static, 'static> { app = app.arg( arg("one-file-system") .long("one-file-system") - .aliases(&["mount", "xdev"]), + .aliases(&["mount", "xdev"]) + .hidden_short_help(true), ); }