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:
@ -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}
|
||||
|
Reference in New Issue
Block a user