diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-09-28 16:30:57 -0400 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-09-28 16:32:29 -0400 |
commit | 925d0db9f032be79bfcd9cf618063dbe6ffc4f93 (patch) | |
tree | 8f535034121c0e2c2adc5d2d14948ce388e681bf /doc | |
parent | 316ffd87b3b521ecea555b80042ff5182eca5e6f (diff) |
Add -s/--case-sensitive flag.
This flag overrides both --smart-case and --ignore-case.
Closes #124.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rg.1 | 14 | ||||
-rw-r--r-- | doc/rg.1.md | 8 |
2 files changed, 20 insertions, 2 deletions
@@ -70,6 +70,7 @@ Show this usage message. .TP .B \-i, \-\-ignore\-case Case insensitive search. +Overridden by \-\-case\-sensitive. .RS .RE .TP @@ -209,6 +210,12 @@ Follow symlinks. .RS .RE .TP +.B \-\-maxdepth \f[I]NUM\f[] +Descend at most NUM directories below the command line arguments. +A value of zero searches only the starting\-points themselves. +.RS +.RE +.TP .B \-\-mmap Search using memory maps when possible. This is enabled by default when ripgrep thinks it will be faster. @@ -252,9 +259,16 @@ Alias for \-\-color=always \-\-heading \-n. .RS .RE .TP +.B \-s, \-\-case\-sensitive +Search case sensitively. +This overrides \-\-ignore\-case and \-\-smart\-case. +.RS +.RE +.TP .B \-S, \-\-smart\-case Search case insensitively if the pattern is all lowercase. Search case sensitively otherwise. +This is overridden by either \-\-case\-sensitive or \-\-ignore\-case. .RS .RE .TP diff --git a/doc/rg.1.md b/doc/rg.1.md index f7379fc5..6de16e53 100644 --- a/doc/rg.1.md +++ b/doc/rg.1.md @@ -49,7 +49,7 @@ the raw speed of grep. : Show this usage message. -i, --ignore-case -: Case insensitive search. +: Case insensitive search. Overridden by --case-sensitive. -n, --line-number : Show line numbers (1-based). This is enabled by default at a tty. @@ -168,9 +168,13 @@ the raw speed of grep. -p, --pretty : Alias for --color=always --heading -n. +-s, --case-sensitive +: Search case sensitively. This overrides --ignore-case and --smart-case. + -S, --smart-case : Search case insensitively if the pattern is all lowercase. - Search case sensitively otherwise. + Search case sensitively otherwise. This is overridden by either + --case-sensitive or --ignore-case. -j, --threads *ARG* : The number of threads to use. Defaults to the number of logical CPUs |