doc: document all file type

This adds it to the guide and the docs for the --type flag.

Fixes #1344, Closes #1472
This commit is contained in:
Robert Irelan
2020-01-27 10:52:32 -08:00
committed by Andrew Gallant
parent 1bdb767851
commit 24f8a3e5ec
3 changed files with 23 additions and 0 deletions

View File

@@ -2457,6 +2457,12 @@ fn flag_type(args: &mut Vec<RGArg>) {
const LONG: &str = long!("\
Only search files matching TYPE. Multiple type flags may be provided. Use the
--type-list flag to list all available types.
This flag supports the special value 'all', which will behave as if --type
was provided for every file type supported by ripgrep (including any custom
file types). The end result is that '--type all' causes ripgrep to search in
\"whitelist\" mode, where it will only search files it recognizes via its type
definitions.
");
let arg = RGArg::flag("type", "TYPE").short("t")
.help(SHORT).long_help(LONG)