chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
depend: Fix help listing
[topgit.git]
/
tg-depend.sh
diff --git
a/tg-depend.sh
b/tg-depend.sh
index af78808805449428ca0db06a2c5076ae116ac6a2..498eec4e3e0018c0d57c6f24ee788e7e13aaf48c 100644
(file)
--- 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