sharkdp / fd

A simple, fast and user-friendly alternative to 'find'
Apache License 2.0
34.29k stars 816 forks source link

Consider adding a `--mindepth` alias for `--min-depth` #1616

Closed cstyles closed 1 month ago

cstyles commented 2 months ago

As of https://github.com/sharkdp/fd/pull/323, fd supports a --maxdepth alias. However, no such alias exists for --min-depth so the following, seemingly correct command fails:

$ fd --maxdepth=3 --mindepth=2
error: unexpected argument '--mindepth' found

  tip: a similar argument exists: '--min-depth'

Usage: fd --max-depth <depth> --min-depth <depth> [pattern] [path]...

For more information, try '--help'.