Skip to content
Myr

Merge pull request #1808 from sivaramsk/master

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

Add -C as a short option to change base-directory

authored by Thayne McCombs · committed by GitHub · parents 8c9c6be, c7a0550 · Browse files · 3 files+3 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

3 files+3 added−1 removed

  • other:+3 added−1 removed

3 files+3 added−1 removed

modified:doc/fd.1+1 added-1 removed
383 unmodified lines
384 \-\-owner john385 \-\-owner :students386 \-\-owner "!john:students"387.TP388.BI "\-\-base\-directory " path388.BI "-C, \-\-base\-directory " path389Change the current working directory of fd to the provided path. This means that search results will390be shown with respect to the given base path. Note that relative paths which are passed to fd via the391positional \fIpath\fR argument or the \fB\-\-search\-path\fR option will also be resolved relative to392this directory.
175 unmodified lines
modified:src/cli.rs+1 added
592 unmodified lines
593 /// <path> argument or the '--search-path' option will also be resolved594 /// relative to this directory.595 #[arg(596 long,597 short = 'C',598 value_name = "path",599 hide_short_help = true,600 help = "Change current working directory",601 long_help
340 unmodified lines
modified:README.md+1 added
342 unmodified lines
343 -c, --color <when> When to use colors [default: auto] [possible values: auto,344 always, never]345 --hyperlink[=<when>] Add hyperlinks to output paths [default: never] [possible346 values: auto, always, never]347 -C, --base-directory <path> Change the search path to <path>348 -h, --help Print help (see more with '--help')349 -V, --version Print version350```351
410 unmodified lines