Add opposing options to manpage

This commit is contained in:
Vukašin Stepanović 2021-08-23 15:27:52 +02:00
parent 37852aa388
commit 668af05dca
2 changed files with 9 additions and 6 deletions

7
doc/fd.1 vendored
View file

@ -28,7 +28,7 @@ is a simple, fast and user-friendly alternative to
.TP .TP
.B \-H, \-\-hidden .B \-H, \-\-hidden
Include hidden files and directories in the search results Include hidden files and directories in the search results
(default: hidden files and directories are skipped). (default: hidden files and directories are skipped). The flag can be overridden with '--no-hidden'.
.TP .TP
.B \-I, \-\-no\-ignore .B \-I, \-\-no\-ignore
Show search results from files and directories that would otherwise be ignored by Show search results from files and directories that would otherwise be ignored by
@ -36,6 +36,7 @@ Show search results from files and directories that would otherwise be ignored b
.IR .ignore , .IR .ignore ,
.IR .fdignore , .IR .fdignore ,
or the global ignore file. or the global ignore file.
The flag can be overridden with '--ignore'.
.TP .TP
.B \-u, \-\-unrestricted .B \-u, \-\-unrestricted
Alias for '--no-ignore'. Can be repeated; '-uu' is an alias for '--no-ignore --hidden'. Alias for '--no-ignore'. Can be repeated; '-uu' is an alias for '--no-ignore --hidden'.
@ -44,6 +45,7 @@ Alias for '--no-ignore'. Can be repeated; '-uu' is an alias for '--no-ignore --h
Show search results from files and directories that would otherwise be ignored by Show search results from files and directories that would otherwise be ignored by
.I .gitignore .I .gitignore
files. files.
The flag can be overridden with '--ignore-vcs'.
.TP .TP
.B \-s, \-\-case\-sensitive .B \-s, \-\-case\-sensitive
Perform a case-sensitive search. By default, fd uses case-insensitive searches, unless the Perform a case-sensitive search. By default, fd uses case-insensitive searches, unless the
@ -65,6 +67,7 @@ performs substring comparison. If you want to match on an exact filename, consid
.TP .TP
.B \-a, \-\-absolute\-path .B \-a, \-\-absolute\-path
Shows the full path starting from the root as opposed to relative paths. Shows the full path starting from the root as opposed to relative paths.
The flag can be overridden with '--relative-path'.
.TP .TP
.B \-l, \-\-list\-details .B \-l, \-\-list\-details
Use a detailed listing format like 'ls -l'. This is basically an alias Use a detailed listing format like 'ls -l'. This is basically an alias
@ -74,7 +77,7 @@ sort order.
.TP .TP
.B \-L, \-\-follow .B \-L, \-\-follow
By default, fd does not descend into symlinked directories. Using this flag, symbolic links are By default, fd does not descend into symlinked directories. Using this flag, symbolic links are
also traversed. also traversed. The flag can be overridden with '--no-follow'.
.TP .TP
.B \-p, \-\-full\-path .B \-p, \-\-full\-path
By default, the search pattern is only matched against the filename (or directory name). Using By default, the search pattern is only matched against the filename (or directory name). Using

View file

@ -26,7 +26,7 @@ pub fn build_app() -> App<'static, 'static> {
"Include hidden directories and files in the search results (default: \ "Include hidden directories and files in the search results (default: \
hidden files and directories are skipped). Files and directories are \ hidden files and directories are skipped). Files and directories are \
considered to be hidden if their name starts with a `.` sign (dot). \ considered to be hidden if their name starts with a `.` sign (dot). \
Flag can be overridden with --no-hidden.", The flag can be overridden with --no-hidden.",
), ),
) )
.arg( .arg(
@ -47,7 +47,7 @@ pub fn build_app() -> App<'static, 'static> {
.long_help( .long_help(
"Show search results from files and directories that would otherwise be \ "Show search results from files and directories that would otherwise be \
ignored by '.gitignore', '.ignore', '.fdignore', or the global ignore file. \ ignored by '.gitignore', '.ignore', '.fdignore', or the global ignore file. \
Flag can be overridden with --ignore.", The flag can be overridden with --ignore.",
), ),
) )
.arg( .arg(
@ -66,7 +66,7 @@ pub fn build_app() -> App<'static, 'static> {
.hidden_short_help(true) .hidden_short_help(true)
.long_help( .long_help(
"Show search results from files and directories that would otherwise be \ "Show search results from files and directories that would otherwise be \
ignored by '.gitignore' files. Flag can be overridden with --ignore-vcs.", ignored by '.gitignore' files. The flag can be overridden with --ignore-vcs.",
), ),
) )
.arg( .arg(
@ -159,7 +159,7 @@ pub fn build_app() -> App<'static, 'static> {
.help("Show absolute instead of relative paths") .help("Show absolute instead of relative paths")
.long_help( .long_help(
"Shows the full path starting from the root as opposed to relative paths. \ "Shows the full path starting from the root as opposed to relative paths. \
Flag can be overridden with --relative-path.", The flag can be overridden with --relative-path.",
), ),
) )
.arg( .arg(