diff options
author | Andrew Gallant <jamslam@gmail.com> | 2020-11-15 15:27:23 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2020-11-15 15:27:23 -0500 |
commit | d6365117e2e5be90397b65ed6f4c20f98a504f22 (patch) | |
tree | 82aed6b2e5e41d9ffd40d35ef08fba3077596d43 | |
parent | f32e90601291f18559c376d2e51e214b58f7980b (diff) |
doc: sync --help output with man page
The man page had the correct usage hints, but the -h/--help output was
using an older more incorrect version of the hints.
Closes #1730 (again)
-rw-r--r-- | crates/core/app.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/core/app.rs b/crates/core/app.rs index 9785bccb..c97578a3 100644 --- a/crates/core/app.rs +++ b/crates/core/app.rs @@ -24,10 +24,13 @@ Project home page: https://github.com/BurntSushi/ripgrep const USAGE: &str = " rg [OPTIONS] PATTERN [PATH ...] - rg [OPTIONS] [-e PATTERN ...] [-f PATTERNFILE ...] [PATH ...] + rg [OPTIONS] -e PATTERN ... [PATH ...] + rg [OPTIONS] -f PATTERNFILE ... [PATH ...] rg [OPTIONS] --files [PATH ...] rg [OPTIONS] --type-list - command | rg [OPTIONS] PATTERN"; + command | rg [OPTIONS] PATTERN + rg [OPTIONS] --help + rg [OPTIONS] --version"; const TEMPLATE: &str = "\ {bin} {version} |