From: Jonas Fonseca Date: Thu, 25 Sep 2008 10:50:40 +0000 (+0200) Subject: depend: Fix help listing X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=bb4aa31cb1b1f107302216ee9a6ce36bb31bd7cf;p=topgit.git depend: Fix help listing Without this `tg help depend` causes all kinds of trouble such as adding empty lines to .topdeps. Signed-off-by: Jonas Fonseca --- diff --git a/tg-depend.sh b/tg-depend.sh index af78808..498eec4 100644 --- a/tg-depend.sh +++ b/tg-depend.sh @@ -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