Skip to content

Commit fcd8466

Browse files
authored
Merge pull request #1921 from rexkirshner/fix-exclude-value-name-glob
Change --exclude value name from 'pattern' to 'glob'
2 parents 6d77799 + 37f3c2e commit fcd8466

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ Options:
337337
-L, --follow Follow symbolic links
338338
-p, --full-path Search full abs. path (default: filename only)
339339
-d, --max-depth <depth> Set maximum search depth (default: none)
340-
-E, --exclude <pattern> Exclude entries that match the given glob pattern
340+
-E, --exclude <glob> Exclude entries that match the given glob pattern
341341
-t, --type <filetype> Filter by type: file (f), directory (d/dir), symlink (l),
342342
executable (x), empty (e), socket (s), pipe (p), char-device
343343
(c), block-device (b)

doc/fd.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ This option can be used repeatedly to allow for multiple possible file extension
257257
If you want to search for files without extension, you can use the regex '^[^.]+$'
258258
as a normal search pattern.
259259
.TP
260-
.BI "\-E, \-\-exclude " pattern
260+
.BI "\-E, \-\-exclude " glob
261261
Exclude files/directories that match the given glob pattern.
262262
This overrides any other ignore logic.
263263
Multiple exclude patterns can be specified.

src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ pub struct Opts {
299299
#[arg(
300300
long,
301301
short = 'E',
302-
value_name = "pattern",
302+
value_name = "glob",
303303
help = "Exclude entries that match the given glob pattern",
304304
long_help
305305
)]

0 commit comments

Comments
 (0)