Files
ripgrep/src
Andrew Gallant 224c112e05 argv: tweak the meaning of zero
This commit makes a small tweak to the --max-columns flag. Namely, if
the value of the flag is 0, then ripgrep behaves as-if the flag were
absent.

This is useful in the context of ripgrep reading configuration from the
environment. For example, an end user might set --max-columns=150, but we
should permit the user to disable this setting when needed. Using -M0 is
a nice way to do that.

We do this because a zero value for --max-columns isn't particularly
meaningful. We do leave the --max-count, --max-filesize and --maxdepth
flags alone though, since a zero value for those flags is potentially
meaningful. (--max-count even has tests for ripgrep's behavior when
given a value of 0.)
2018-02-06 12:07:59 -05:00
..
2018-02-06 12:07:59 -05:00
2018-02-06 12:07:59 -05:00
2018-02-04 10:40:20 -05:00
2018-01-01 09:22:35 -05:00
2018-02-04 10:40:20 -05:00
2018-02-04 10:40:20 -05:00
2016-12-23 14:53:35 -05:00
2018-01-01 09:22:35 -05:00
2018-01-01 09:22:35 -05:00