Improve --fixed-strings help text, closes #627

This commit is contained in:
sharkdp 2020-12-06 14:57:47 +01:00
parent ecfd8cea41
commit 17bd256ae6
2 changed files with 5 additions and 2 deletions

3
doc/fd.1 vendored
View File

@ -60,7 +60,8 @@ Perform a glob-based search instead of a regular expression search.
Perform a regular-expression based search (default). This can be used to override --glob.
.TP
.B \-F, \-\-fixed\-strings
Treat the pattern as a literal string instead of a regular expression.
Treat the pattern as a literal string instead of a regular expression. Note that this also
performs substring comparison. If you want to match on an exact filename, consider using '\-\-glob'.
.TP
.B \-a, \-\-absolute\-path
Shows the full path starting from the root as opposed to relative paths.

View File

@ -117,7 +117,9 @@ pub fn build_app() -> App<'static, 'static> {
.overrides_with("fixed-strings")
.hidden_short_help(true)
.long_help(
"Treat the pattern as a literal string instead of a regular expression.",
"Treat the pattern as a literal string instead of a regular expression. Note \
that this also performs substring comparison. If you want to match on an \
exact filename, consider using '--glob'.",
),
)
.arg(