chiark / gitweb /
depend: Fix help listing
[topgit.git] / tg-depend.sh
index af78808805449428ca0db06a2c5076ae116ac6a2..498eec4e3e0018c0d57c6f24ee788e7e13aaf48c 100644 (file)
@@ -9,6 +9,10 @@ name=
 ## Parse options
 
 subcmd="$1"; shift
+[ "$subcmd" = "-h" ] && {
+       echo "Usage: tg [...] depend add NAME" >&2
+       exit 1
+}
 [ "$subcmd" = "add" ] || die "unknown subcommand ($subcmd)"
 
 while [ -n "$1" ]; do