1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-03-17 20:28:03 +02:00

doc: note '-n' and '-N' override each other

Closes #2460
This commit is contained in:
Misaki 2023-03-15 17:51:08 -04:00 committed by Andrew Gallant
parent ad9bfdd981
commit 43bbcca06f

View File

@ -1711,6 +1711,8 @@ fn flag_line_number(args: &mut Vec<RGArg>) {
"\
Show line numbers (1-based). This is enabled by default when searching in a
terminal.
This flag overrides --no-line-number.
"
);
let arg = RGArg::switch("line-number")
@ -1725,6 +1727,8 @@ terminal.
"\
Suppress line numbers. This is enabled by default when not searching in a
terminal.
This flag overrides --line-number.
"
);
let arg = RGArg::switch("no-line-number")