Improve --exclude help text, closes #661

This commit is contained in:
sharkdp 2020-12-06 12:15:01 +01:00
parent 296300ce46
commit d205a7ff9e
2 changed files with 7 additions and 1 deletions

3
doc/fd.1 vendored
View file

@ -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. Exclude files/directories that match the given glob pattern.
This overrides any other ignore logic. This overrides any other ignore logic.
Multiple exclude patterns can be specified. Multiple exclude patterns can be specified.
Examples:
\-\-exclude '*.pyc'
\-\-exclude node_modules
.TP .TP
.BI "\-\-ignore-file " path .BI "\-\-ignore-file " path
Add a custom ignore-file in '.gitignore' format. Add a custom ignore-file in '.gitignore' format.

View file

@ -340,7 +340,10 @@ pub fn build_app() -> App<'static, 'static> {
.long_help( .long_help(
"Exclude files/directories that match the given glob pattern. This \ "Exclude files/directories that match the given glob pattern. This \
overrides any other ignore logic. Multiple exclude patterns can be \ overrides any other ignore logic. Multiple exclude patterns can be \
specified.", specified.\n\n\
Examples:\n \
--exclude '*.pyc'\n \
--exclude node_modules",
), ),
) )
.arg( .arg(