threads / patch / 15670

patchdepend: Fix help listing

Subject: [TG PATCH] depend: Fix help listing

## tl;dr

One message between Sep 25, 2008 and Sep 25, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jonas Fonseca· Sep 25, 2008, 10:50 UTC · lore

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

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
---
 tg-depend.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Show changes to tg-depend.sh +4 −0
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
-- 
tg: (212809f..) jf/depend-help (depends on: master)

-- 
Jonas Fonseca

← back to recent threads