chiark / gitweb /
Print help output when no command is given
[topgit.git] / tg.sh
diff --git a/tg.sh b/tg.sh
index 9b93f1db17990effa6025b69fc62806c0b718f3f..4dcc15eff90bcc581980336b94d44f40e2385759 100644 (file)
--- 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