From: Alejandro Colomar Date: Sat, 4 Nov 2023 19:59:06 +0000 (+0100) Subject: bin/grepc, grepc.1: Remove -h flag X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8299be866fe31e0c2a823ea5c52e1e907b326cda;p=thirdparty%2Fman-pages.git 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 --- diff --git a/bin/grepc b/bin/grepc index a4f414eca..2cbe33e1a 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 176aaa604..fad8c88a1 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 .