From 2c6650d8ad57f8abe8a0b7e3d1c2444143c2fb1f Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 9 Jul 2011 10:56:16 -0400 Subject: mkinitcpio: reference -h on failed option parsing Signed-off-by: Dave Reisner --- mkinitcpio | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index 4a394d8..49dabbd 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -133,9 +133,9 @@ while getopts ':c:k:sb:g:p:m:nvH:LMhS:t:z:' arg; do M) SHOW_AUTOMODS=1 ;; t) TMPDIR=$OPTARG ;; z) optcompress=$OPTARG ;; - :) error "option requires an argument -- '$OPTARG'" >&2 + :) error "option requires an argument -- '$OPTARG' (use -h for help)" exit 1 ;; - \?) error "invalid option -- '$OPTARG'" >&2 + \?) error "invalid option -- '$OPTARG' (use -h for help)" exit 1 ;; esac done -- cgit v1.2.3-24-g4f1b