chiark / gitweb /
tg.sh: Add -h, --help aliases for the help command
authorAntonio Ospite <ao2@openezx.org>
Sat, 9 Aug 2008 00:58:22 +0000 (02:58 +0200)
committerPetr Baudis <pasky@suse.cz>
Sat, 9 Aug 2008 00:58:22 +0000 (02:58 +0200)
I added some more help switches, I had to read the code to find the 'help'
command because the usual --help and -h didn't worked.

Signed-off-by: Antonio Ospite <ao2@openezx.org>
Signed-off-by: Petr Baudis <pasky@suse.cz>
tg.sh

diff --git a/tg.sh b/tg.sh
index c5c71a22fa25064b72746111b3e9633244956286..d520a230096ebdfbe442af71f333c59c7a9a1c32 100644 (file)
--- a/tg.sh
+++ b/tg.sh
@@ -198,7 +198,7 @@ cmd="$1"
 shift
 
 case "$cmd" in
-help)
+help|--help|-h)
        do_help "$1"
        exit 1;;
 --hooks-path)