cli: make -d a short flag for --max-depth

Interestingly, ripgrep now only has two available ASCII letter short
flags remaining: -k and -y.

Closes #2643, Closes #2644
This commit is contained in:
Andrew Gallant
2023-11-21 18:07:18 -05:00
parent 3d2f49f6fe
commit af55fc2b38
3 changed files with 9 additions and 1 deletions

View File

@@ -192,7 +192,7 @@ _rg() {
$no"--no-max-columns-preview[don't show preview for long lines (with -M)]"
+ '(max-depth)' # Directory-depth options
'--max-depth=[specify max number of directories to descend]:number of directories'
{-d,--max-depth}'[specify max number of directories to descend]:number of directories'
'--maxdepth=[alias for --max-depth]:number of directories'
'!--maxdepth=:number of directories'