summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-12 14:10:53 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-12 14:11:42 +0200
commit9d731d282c3eb7b7b6cb192c0b19e3702c6cd658 (patch)
treeb72cb47223989043a9b99447140ad631025415fc /share
parentfbed97a8ff8878e88cc60023fee5862a01965353 (diff)
grepc, grepc.1: Add -t option to restrict the search to a type of code.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'share')
-rw-r--r--share/man/man1/grepc.127
1 files changed, 27 insertions, 0 deletions
diff --git a/share/man/man1/grepc.1 b/share/man/man1/grepc.1
index 7003255..c459510 100644
--- a/share/man/man1/grepc.1
+++ b/share/man/man1/grepc.1
@@ -32,6 +32,24 @@ If no
.I file
is given,
the working directory is searched.
+.SS Types of code
+This program can search for several types of code.
+The following arguments can be passed to the
+.B \-t
+option
+to select the types of code that will be searched.
+.TP
+.B e
+enum constant definitions.
+.TP
+.B f
+Function declarations and definitions.
+.TP
+.B m
+Macro definitions.
+.TP
+.B t
+Type definitions.
.SH OPTIONS
.TP
.B \-g
@@ -40,6 +58,15 @@ Restrict the search to files tracked by git.
.B \-h
Output a help message and exit.
.TP
+.BI \-t " type"
+Restrict the search to a specific
+.I type
+of code (see Types of code under DESCRIPTION).
+This option can be passed multiple times
+to search for various types of code.
+Default:
+.BR "e f m t" .
+.TP
.BI \-x " extension"
Restrict the search to files ending with
.IR extension .