Skip to content
Myr

add --base-directory, --path-separator, and --search-path to the man page

Before adoption: this commit came in with the history the project adopted, so no landing records it.

These options are in `fd --help` but missing from the man page. Also fix a typo in the help text for --base-directory.

authored by Allen Wild · committed by David Peter · parent 633d486 · Browse files · 2 files+15 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+15 added−1 removed

  • other:+15 added−1 removed

2 files+15 added−1 removed

modified:doc/fd.1+14 added
230 unmodified lines
231 \-\-owner john232 \-\-owner :students233 \-\-owner "!john:students"234.TP235.BI "\-\-base\-directory " path236Change the current working directory of fd to the provided path. This means that search results will237be shown with respect to the given base path. Note that relative paths which are passed to fd via the238positional \fIpath\fR argument or the \fB\-\-search\-path\fR option will also be resolved relative to239this directory.240.TP241.BI "\-\-path\-separator " separator242Set the path separator to use when printinf file paths. The default is the OS-specific separator243('/' on Unix, '\\' on Windows).244.TP245.BI "\-\-search\-path " search\-path246Provide paths to search as an alternative to the positional \fIpath\fR argument. Changes the usage to247\'fd [FLAGS/OPTIONS] \-\-search\-path PATH \-\-search\-path PATH2 [PATTERN]\'248.TP249.BI "\-x, \-\-exec " command250Execute251.I command252for each search result. The following placeholders are substituted by a path derived from the current search result:
68 unmodified lines
modified:src/app.rs+1 added-1 removed
483 unmodified lines
484 .value_name("path")485 .number_of_values(1)486 .hidden_short_help(true)487 .long_help(488 "Change the current working directory of fd to the provided path. The \488 "Change the current working directory of fd to the provided path. This \489 means that search results will be shown with respect to the given base \490 path. Note that relative paths which are passed to fd via the positional \491 <path> argument or the '--search-path' option will also be resolved \492 relative to this directory.",
82 unmodified lines