From d6365117e2e5be90397b65ed6f4c20f98a504f22 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sun, 15 Nov 2020 15:27:23 -0500 Subject: [PATCH] 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) --- crates/core/app.rs | 7 +++++-- 1 file 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}