1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-04-24 17:12:16 +02:00
Andrew Gallant 95bc678403 Fix interaction with clap.
Previously, `get_matches` would return even if --help or --version was
given, and we could check for them manually. That behavior seems to have
changed. Instead, we must use get_matches_safe to inspect the error to
determine what happened.

We can't use the same process for -V/--version since clap will
unconditionally print its own version info. Instead, we rename (internally)
the version flag so that clap doesn't interfere.
2017-03-12 22:30:54 -04:00
..
2017-03-12 22:30:54 -04:00
2017-03-12 22:30:54 -04:00
2017-03-12 20:21:22 -04:00
2016-12-23 14:53:35 -05:00
2017-03-12 21:21:28 -04:00
2016-12-23 14:53:35 -05:00