From 0a5596544393ee08734f4c31d9a61c43df8e5e0d Mon Sep 17 00:00:00 2001 From: fizyxbt <17788586+fizyxbt@users.noreply.github.com> Date: Thu, 14 May 2026 12:34:58 +0200 Subject: [PATCH] docs: clarify full path help text Describe the default search target as the final path component and avoid implying that --full-path is the same as absolute output. Signed-off-by: fizyxbt <17788586+fizyxbt@users.noreply.github.com> --- README.md | 2 +- src/cli.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 18a56d529..ec20d93d7 100644 --- a/README.md +++ b/README.md @@ -322,7 +322,7 @@ Options: -a, --absolute-path Show absolute instead of relative paths -l, --list-details Use a long listing format with file metadata -L, --follow Follow symbolic links - -p, --full-path Search full abs. path (default: filename only) + -p, --full-path Search full path (default: final path component only) -d, --max-depth Set maximum search depth (default: none) -E, --exclude Exclude entries that match the given glob pattern -t, --type Filter by type: file (f), directory (d/dir), symlink (l), diff --git a/src/cli.rs b/src/cli.rs index 9c54d7c2c..d850b44a0 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -239,12 +239,12 @@ pub struct Opts { #[arg(long, overrides_with = "follow", hide = true, action = ArgAction::SetTrue)] no_follow: (), - /// By default, the search pattern is only matched against the filename (or directory name). Using this flag, the pattern is matched against the full (absolute) path. Example: + /// By default, the search pattern is only matched against the final path component. Using this flag, the pattern is matched against the full path. Example: /// fd --glob -p '**/.git/config' #[arg( long, short = 'p', - help = "Search full abs. path (default: filename only)", + help = "Search full path (default: final path component only)", long_help, verbatim_doc_comment )]