Skip to contentSkip to conversation

depend: Fix help listing

PATCH New Jonas Fonseca 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 depend: Fix help listing

Without this tg help depend causes all kinds of trouble such as adding empty lines to .topdeps.

---
 tg-depend.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
tg-depend.sh +4 -0
index af78808..498eec4 100644
@@ -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
Signature · 4 lines
tg: (212809f..) jf/depend-help (depends on: master)

-- 
Jonas Fonseca