Make --column imply --line-number.

Closes #243
This commit is contained in:
Andrew Gallant
2017-01-11 18:53:35 -05:00
parent c3de1f58ea
commit 7a951f103a
5 changed files with 18 additions and 5 deletions

View File

@@ -183,6 +183,7 @@ Show column numbers (1 based) in output.
This only shows the column numbers for the first match on each line.
Note that this doesn\[aq]t try to account for Unicode.
One byte is equal to one column.
This implies \-\-line\-number.
.RS
.RE
.TP

View File

@@ -126,7 +126,8 @@ Project home page: https://github.com/BurntSushi/ripgrep
--column
: Show column numbers (1 based) in output. This only shows the column
numbers for the first match on each line. Note that this doesn't try
to account for Unicode. One byte is equal to one column.
to account for Unicode. One byte is equal to one column. This implies
--line-number.
--context-separator *SEPARATOR*
: The string to use when separating non-continuous context lines. Escape