Skip to content

Commit 37f3c2e

Browse files
rexkirshnerclaude
andcommitted
Change --exclude value name from "pattern" to "glob"
The summary line `-E, --exclude <pattern>` is misleading because fd defaults to regex for its main search pattern, but --exclude takes a glob. Rename the value placeholder to "glob" in the CLI help, man page, and README to match the actual behavior. Fixes #1724 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7027d45 commit 37f3c2e

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
@@ -328,7 +328,7 @@ Options:
328328
-L, --follow Follow symbolic links
329329
-p, --full-path Search full abs. path (default: filename only)
330330
-d, --max-depth <depth> Set maximum search depth (default: none)
331-
-E, --exclude <pattern> Exclude entries that match the given glob pattern
331+
-E, --exclude <glob> Exclude entries that match the given glob pattern
332332
-t, --type <filetype> Filter by type: file (f), directory (d/dir), symlink (l),
333333
executable (x), empty (e), socket (s), pipe (p), char-device
334334
(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)