From d205a7ff9e40430458348b0408bb4e529eb8b280 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 6 Dec 2020 12:15:01 +0100 Subject: [PATCH] Improve --exclude help text, closes #661 --- doc/fd.1 | 3 +++ src/app.rs | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/fd.1 b/doc/fd.1 index 3579d90..598ae27 100644 --- a/doc/fd.1 +++ b/doc/fd.1 @@ -150,6 +150,9 @@ This option can be used repeatedly to allow for multiple possible file extension Exclude files/directories that match the given glob pattern. This overrides any other ignore logic. Multiple exclude patterns can be specified. +Examples: + \-\-exclude '*.pyc' + \-\-exclude node_modules .TP .BI "\-\-ignore-file " path Add a custom ignore-file in '.gitignore' format. diff --git a/src/app.rs b/src/app.rs index 6715598..d759add 100644 --- a/src/app.rs +++ b/src/app.rs @@ -340,7 +340,10 @@ pub fn build_app() -> App<'static, 'static> { .long_help( "Exclude files/directories that match the given glob pattern. This \ overrides any other ignore logic. Multiple exclude patterns can be \ - specified.", + specified.\n\n\ + Examples:\n \ + --exclude '*.pyc'\n \ + --exclude node_modules", ), ) .arg(