From: martin f. krafft Date: Wed, 19 Nov 2008 16:03:43 GMT Subject: [TopGit PATCH] Print help output when no command is given Message-ID: <1227110623-4474-5-git-send-email-madduck@debian.org> In-Reply-To: <1227110623-4474-4-git-send-email-madduck@debian.org> 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 --- tg.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tg.sh b/tg.sh index f3d1323..e0d62e7 100644 --- a/tg.sh +++ b/tg.sh @@ -278,7 +278,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 -- 1.6.0.2