1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-07-16 22:42:20 +02:00

ripgrep: improve usage documentation

This shows an example for reading stdin.

Fixes #951
This commit is contained in:
Andrew Gallant
2018-07-22 09:38:49 -04:00
parent b9c922be53
commit 6771626553
3 changed files with 6 additions and 1 deletions

View File

@ -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}