Skip to content

Commit

Permalink
Improve --exclude help text, closes sharkdp#661
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Dec 6, 2020
1 parent 296300c commit d205a7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/fd.1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d205a7f

Please sign in to comment.