chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tg mail -r MSGID: Generate In-reply-to header
[topgit.git]
/
tg-depend.sh
diff --git
a/tg-depend.sh
b/tg-depend.sh
index af78808805449428ca0db06a2c5076ae116ac6a2..eeb76cd1202dc82fc34c2448821a11d6364cab68 100644
(file)
--- a/
tg-depend.sh
+++ b/
tg-depend.sh
@@
-8,8
+8,16
@@
name=
## Parse options
## Parse options
-subcmd="$1"; shift
-[ "$subcmd" = "add" ] || die "unknown subcommand ($subcmd)"
+subcmd="$1"; shift || :
+case "$subcmd" in
+ -h|"")
+ echo "Usage: tg [...] depend add NAME" >&2
+ exit 1;;
+ add)
+ ;;
+ *)
+ die "unknown subcommand ($subcmd)";;
+esac
while [ -n "$1" ]; do
arg="$1"; shift
while [ -n "$1" ]; do
arg="$1"; shift