beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 140 forks source link

Fix documentation for --lines #673

Closed hoelzro closed 5 years ago

hoelzro commented 6 years ago

See https://github.com/beyondgrep/ack3/issues/166

The documentation for --lines currently says:

  --lines=NUM                   Only print line(s) NUM of each file.  No
                                pattern is matched.

--lines=NUM implies only a single number may be specified, but line(s) NUM implies one may supply several. Not only is this inconsistent, but it doesn't explain how one would specify multiple lines if they desired.

For reference, you can specify a comma-separated list of expressions, each of which is a single integer line number, or a dash-separated start-end range, which matches all lines between start and end, inclusive.

petdance commented 5 years ago

Updated in 2.26.