summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-11-04 20:59:06 +0100
committerAlejandro Colomar <alx@kernel.org>2023-11-05 03:14:06 +0100
commita82394004841f04b646f392eea2faeb7e06fce2a (patch)
tree6ac6b8abbeca8bbb627e3183e88b9650ce61d3d8
parentca0b88a99b6f9cc598ff4f1767ed19601170c4ec (diff)
bin/grepc, grepc.1: Remove -h flag
There's already a manual page, and the short help from -h was quite unhelpful. I want to reuse -h for grep(1)'s meaning (don't print the filename). Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-xbin/grepc6
-rw-r--r--share/man/man1/grepc.13
2 files changed, 1 insertions, 8 deletions
diff --git a/bin/grepc b/bin/grepc
index a4f414e..2cbe33e 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -38,15 +38,11 @@ grepc_err()
grepc_parse_cmd()
{
- while getopts "chiklt:" opt; do
+ while getopts "ciklt:" opt; do
case "$opt" in
c)
c='yes';
;;
- h)
- echo "Usage: $0 [OPTION ...] IDENTIFIER [FILE ...]";
- exit 0;
- ;;
i)
i='i';
;;
diff --git a/share/man/man1/grepc.1 b/share/man/man1/grepc.1
index 176aaa6..fad8c88 100644
--- a/share/man/man1/grepc.1
+++ b/share/man/man1/grepc.1
@@ -129,9 +129,6 @@ Only uses
.RB ( u\fI*\fP )
are highlighted.
.TP
-.B \-h
-Output a help message and exit.
-.TP
.B \-i
Ignore case distinctions in
.IR pattern .