summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-07-22 09:38:49 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-07-22 09:38:49 -0400
commit6771626553934f16306e8409aee78f7a63e43738 (patch)
treeb4cf81e211d17060774f54aa6a86612e1c8c25e5 /src
parentb9c922be53fdadb28ddbb02b4b0d0a63f8bdebe7 (diff)
ripgrep: improve usage documentation
This shows an example for reading stdin. Fixes #951
Diffstat (limited to 'src')
-rw-r--r--src/app.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app.rs b/src/app.rs
index 4336d5af..402bef5e 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -33,7 +33,8 @@ const USAGE: &str = "
rg [OPTIONS] PATTERN [PATH ...]
rg [OPTIONS] [-e PATTERN ...] [-f PATTERNFILE ...] [PATH ...]
rg [OPTIONS] --files [PATH ...]
- rg [OPTIONS] --type-list";
+ rg [OPTIONS] --type-list
+ command | rg [OPTIONS] PATTERN";
const TEMPLATE: &str = "\
{bin} {version}