Skip to content

Commit

Permalink
Add -d as short command for --max-depth
Browse files Browse the repository at this point in the history
  • Loading branch information
3tilley committed Nov 2, 2023
1 parent 7099e17 commit 1ca4788
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion complete/_rg
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,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)'{-d+,--max-depth=}'=[specify max number of directories to descend]:number of directories'
'!--maxdepth=:number of directories'

+ '(messages)' # Error-message options
Expand Down
1 change: 1 addition & 0 deletions crates/core/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1934,6 +1934,7 @@ descended into. 'rg --max-depth 1 dir/' will search only the direct children of
"
);
let arg = RGArg::flag("max-depth", "NUM")
.short("d")
.help(SHORT)
.long_help(LONG)
.alias("maxdepth")
Expand Down

0 comments on commit 1ca4788

Please sign in to comment.