Update Usage in Readme

This commit is contained in:
David Peter 2022-11-01 21:18:11 +01:00
parent 12165c73f8
commit bab77275ec
1 changed files with 29 additions and 31 deletions

View File

@ -295,39 +295,37 @@ This is the output of `fd -h`. To see the full set of command-line options, use
also includes a much more detailed help text. also includes a much more detailed help text.
``` ```
USAGE: Usage: fd [OPTIONS] [pattern] [path]...
fd [FLAGS/OPTIONS] [<pattern>] [<path>...]
FLAGS: Arguments:
-H, --hidden Search hidden files and directories [pattern] the search pattern (a regular expression, unless '--glob' is used; optional)
-I, --no-ignore Do not respect .(git|fd)ignore files [path]... the root directories for the filesystem search (optional)
-s, --case-sensitive Case-sensitive search (default: smart case)
-i, --ignore-case Case-insensitive search (default: smart case)
-g, --glob Glob-based search (default: regular expression)
-a, --absolute-path Show absolute instead of relative paths
-l, --list-details Use a long listing format with file metadata
-L, --follow Follow symbolic links
-p, --full-path Search full abs. path (default: filename only)
-h, --help Prints help information
-V, --version Prints version information
OPTIONS: Options:
-d, --max-depth <depth> Set maximum search depth (default: none) -H, --hidden Search hidden files and directories
-t, --type <filetype>... Filter by type: file (f), directory (d), symlink (l), -I, --no-ignore Do not respect .(git|fd)ignore files
executable (x), empty (e), socket (s), pipe (p) -s, --case-sensitive Case-sensitive search (default: smart case)
-e, --extension <ext>... Filter by file extension -i, --ignore-case Case-insensitive search (default: smart case)
-x, --exec <cmd> Execute a command for each search result -g, --glob Glob-based search (default: regular expression)
-X, --exec-batch <cmd> Execute a command with all search results at once -a, --absolute-path Show absolute instead of relative paths
-E, --exclude <pattern>... Exclude entries that match the given glob pattern -l, --list-details Use a long listing format with file metadata
-c, --color <when> When to use colors: never, *auto*, always -L, --follow Follow symbolic links
-S, --size <size>... Limit results based on the size of files -p, --full-path Search full abs. path (default: filename only)
--changed-within <date|dur> Filter by file modification time (newer than) -d, --max-depth <depth> Set maximum search depth (default: none)
--changed-before <date|dur> Filter by file modification time (older than) -E, --exclude <pattern> Exclude entries that match the given glob pattern
-o, --owner <user:group> Filter by owning user and/or group -t, --type <filetype> Filter by type: file (f), directory (d), symlink (l),
executable (x), empty (e), socket (s), pipe (p)
ARGS: -e, --extension <ext> Filter by file extension
<pattern> the search pattern (a regular expression, unless '--glob' is used; optional) -S, --size <size> Limit results based on the size of files
<path>... the root directory for the filesystem search (optional) --changed-within <date|dur> Filter by file modification time (newer than)
--changed-before <date|dur> Filter by file modification time (older than)
-o, --owner <user:group> Filter by owning user and/or group
-x, --exec <cmd>... Execute a command for each search result
-X, --exec-batch <cmd>... Execute a command with all search results at once
-c, --color <when> When to use colors [default: auto] [possible values: auto,
always, never]
-h, --help Print help information (use `--help` for more detail)
-V, --version Print version information
``` ```
## Benchmark ## Benchmark