From f17218ec8187dedb98ea3c6ef40b73b95df1d262 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 19 Nov 2008 16:10:23 +0100 Subject: [PATCH] Print help output when no command is given As much as I love your message (although you really ought not be throwing around ducks!), this is more user-friendly. Signed-off-by: martin f. krafft Acked-by: Petr Baudis --- tg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tg.sh b/tg.sh index 9b93f1d..4dcc15e 100644 --- a/tg.sh +++ b/tg.sh @@ -266,7 +266,7 @@ if [ "$1" = "-r" ]; then fi cmd="$1" -[ -n "$cmd" ] || die "He took a duck in the face at two hundred and fifty knots" +[ -n "$cmd" ] || { do_help; exit 1; } shift case "$cmd" in -- 2.30.2