summaryrefslogtreecommitdiffstats
path: root/complete
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-06-25 19:22:09 -0500
committerAndrew Gallant <jamslam@gmail.com>2018-06-25 20:22:09 -0400
commitb38b101c77003fb94aaaa8084fcb93b6862586eb (patch)
treef495c35a29af0221ca6af3e5fa56975415acae55 /complete
parentac90316e359d41520f4f0c445286f3abda59db80 (diff)
ripgrep: rename --maxdepth to --max-depth
We keep the old `--maxdepth` spelling to preserve backward compatibility. PR #967
Diffstat (limited to 'complete')
-rw-r--r--complete/_rg3
1 files changed, 2 insertions, 1 deletions
diff --git a/complete/_rg b/complete/_rg
index f91a31bc..0d5940cc 100644
--- a/complete/_rg
+++ b/complete/_rg
@@ -51,7 +51,8 @@ _rg() {
'(-M --max-columns)'{-M+,--max-columns=}'[specify max length of lines to print]:number of bytes'
'(-m --max-count)'{-m+,--max-count=}'[specify max number of matches per file]:number of matches'
'--max-filesize=[specify size above which files should be ignored]:file size'
- '--maxdepth=[specify max number of directories to descend]:number of directories'
+ '--max-depth=[specify max number of directories to descend]:number of directories'
+ '!--maxdepth=:number of directories'
'(--mmap --no-mmap)--mmap[search using memory maps when possible]'
'(-H --with-filename --no-filename)--no-filename[suppress all file names]'
"(-p --heading --pretty --vimgrep)--no-heading[don't group matches by file name]"