]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
bin/grepc, grepc.1: Remove -h flag
authorAlejandro Colomar <alx@kernel.org>
Sat, 4 Nov 2023 19:59:06 +0000 (20:59 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:29:19 +0000 (21:29 +0100)
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>
bin/grepc
share/man/man1/grepc.1

index a4f414ecabe2750166087994034640119d54f61f..2cbe33e1a714deaba1fb82be0c7010e3e577f88f 100755 (executable)
--- 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';
                        ;;
index 176aaa604e9939f7fca43637b35a0aa93048f618..fad8c88a12dc131b39334e783f4548371790c95f 100644 (file)
@@ -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 .