From: martin f. krafft Date: Wed, 19 Nov 2008 15:10:23 +0000 (+0100) Subject: Print help output when no command is given X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=f17218ec8187dedb98ea3c6ef40b73b95df1d262;ds=sidebyside 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 --- 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