1
0
mirror of https://github.com/sharkdp/fd synced 2024-07-03 00:08:39 +00:00

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.
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.

View File

@ -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(