mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-07-16 22:42:20 +02:00
Clarify documentation of --type-add.
This explains it a bit more based on end user feedback. We also fix the example, which was wrong. Fixes #82.
This commit is contained in:
6
doc/rg.1
6
doc/rg.1
@ -272,11 +272,15 @@ Show all supported file types and their associated globs.
|
||||
.TP
|
||||
.B \-\-type\-add \f[I]ARG\f[] ...
|
||||
Add a new glob for a particular file type.
|
||||
Only one glob can be added at a time.
|
||||
Multiple \-\-type\-add flags can be provided.
|
||||
Unless \-\-type\-clear is used, globs are added to any existing globs
|
||||
inside of ripgrep.
|
||||
Note that this must be passed to every invocation of rg.
|
||||
.RS
|
||||
.RE
|
||||
.PP
|
||||
Example: \-\-type\-add html:\f[I]\&.html,\f[].htm
|
||||
Example: \f[C]\-\-type\-add\ html:*.html\f[]
|
||||
.TP
|
||||
.B \-\-type\-clear \f[I]TYPE\f[] ...
|
||||
Clear the file type globs previously defined for TYPE.
|
||||
|
Reference in New Issue
Block a user