Improve --full-path documentation, closes #839

This commit is contained in:
David Peter 2021-11-14 17:14:21 +01:00
parent a539181f1f
commit 21fd013073

View file

@ -228,11 +228,12 @@ pub fn build_app() -> App<'static, 'static> {
.long("full-path")
.short("p")
.overrides_with("full-path")
.help("Search full path (default: file-/dirname only)")
.help("Search full abs. path (default: filename only)")
.long_help(
"By default, the search pattern is only matched against the filename (or \
directory name). Using this flag, the pattern is matched against the \
full path.",
directory name). Using this flag, the pattern is matched against the full \
(absolute) path. Example:\n \
fd --glob -p '**/.git/config'",
),
)
.arg(