Merge pull request #1921 from rexkirshner/fix-exclude-value-name-glob

Change --exclude value name from 'pattern' to 'glob'
This commit is contained in:
Thayne McCombs
2026-03-17 00:17:24 -06:00
committed by GitHub
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ Options:
-L, --follow Follow symbolic links
-p, --full-path Search full abs. path (default: filename only)
-d, --max-depth <depth> Set maximum search depth (default: none)
-E, --exclude <pattern> Exclude entries that match the given glob pattern
-E, --exclude <glob> Exclude entries that match the given glob pattern
-t, --type <filetype> Filter by type: file (f), directory (d/dir), symlink (l),
executable (x), empty (e), socket (s), pipe (p), char-device
(c), block-device (b)
Vendored
+1 -1
View File
@@ -257,7 +257,7 @@ This option can be used repeatedly to allow for multiple possible file extension
If you want to search for files without extension, you can use the regex '^[^.]+$'
as a normal search pattern.
.TP
.BI "\-E, \-\-exclude " pattern
.BI "\-E, \-\-exclude " glob
Exclude files/directories that match the given glob pattern.
This overrides any other ignore logic.
Multiple exclude patterns can be specified.
+1 -1
View File
@@ -299,7 +299,7 @@ pub struct Opts {
#[arg(
long,
short = 'E',
value_name = "pattern",
value_name = "glob",
help = "Exclude entries that match the given glob pattern",
long_help
)]