From 459c340fd5ac765ff1e5d82895b59b53b028aaca Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 9 Sep 2008 22:21:59 +0200 Subject: [PATCH] Account for direct-tg arguments in Usage strings --- tg-create.sh | 2 +- tg-delete.sh | 2 +- tg-export.sh | 2 +- tg-info.sh | 2 +- tg-patch.sh | 2 +- tg-remote.sh | 2 +- tg-summary.sh | 2 +- tg-update.sh | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tg-create.sh b/tg-create.sh index 2cab492..fee7dff 100644 --- a/tg-create.sh +++ b/tg-create.sh @@ -15,7 +15,7 @@ while [ -n "$1" ]; do arg="$1"; shift case "$arg" in -*) - echo "Usage: tg create NAME [DEPS...]" >&2 + echo "Usage: tg [...] create NAME [DEPS...]" >&2 exit 1;; *) if [ -z "$name" ]; then diff --git a/tg-delete.sh b/tg-delete.sh index f0114cc..075d15c 100644 --- a/tg-delete.sh +++ b/tg-delete.sh @@ -15,7 +15,7 @@ while [ -n "$1" ]; do -f) force=1;; -*) - echo "Usage: tg delete [-f] NAME" >&2 + echo "Usage: tg [...] delete [-f] NAME" >&2 exit 1;; *) [ -z "$name" ] || die "name already specified ($name)" diff --git a/tg-export.sh b/tg-export.sh index 7fcafbe..654b38b 100644 --- a/tg-export.sh +++ b/tg-export.sh @@ -18,7 +18,7 @@ while [ -n "$1" ]; do --collapse) driver=collapse;; -*) - echo "Usage: tg export ([--collapse] NEWBRANCH | --quilt DIRECTORY)" >&2 + echo "Usage: tg [...] export ([--collapse] NEWBRANCH | --quilt DIRECTORY)" >&2 exit 1;; *) [ -z "$output" ] || die "output already specified ($output)" diff --git a/tg-info.sh b/tg-info.sh index 4de74cc..b5b92f6 100644 --- a/tg-info.sh +++ b/tg-info.sh @@ -12,7 +12,7 @@ while [ -n "$1" ]; do arg="$1"; shift case "$arg" in -*) - echo "Usage: tg info [NAME]" >&2 + echo "Usage: tg [...] info [NAME]" >&2 exit 1;; *) [ -z "$name" ] || die "name already specified ($name)" diff --git a/tg-patch.sh b/tg-patch.sh index 79e5cb3..7a24718 100644 --- a/tg-patch.sh +++ b/tg-patch.sh @@ -12,7 +12,7 @@ while [ -n "$1" ]; do arg="$1"; shift case "$arg" in -*) - echo "Usage: tg patch [NAME]" >&2 + echo "Usage: tg [...] patch [NAME]" >&2 exit 1;; *) [ -z "$name" ] || die "name already specified ($name)" diff --git a/tg-remote.sh b/tg-remote.sh index dd3d666..4f60c73 100644 --- a/tg-remote.sh +++ b/tg-remote.sh @@ -15,7 +15,7 @@ while [ -n "$1" ]; do --populate) populate=1;; -*) - echo "Usage: tg remote [--populate] REMOTE" >&2 + echo "Usage: tg [...] remote [--populate] REMOTE" >&2 exit 1;; *) name="$arg";; diff --git a/tg-summary.sh b/tg-summary.sh index 4ffebce..409f456 100644 --- a/tg-summary.sh +++ b/tg-summary.sh @@ -7,7 +7,7 @@ ## Parse options if [ -n "$1" ]; then - echo "Usage: tg summary" >&2 + echo "Usage: tg [...] summary" >&2 exit 1 fi diff --git a/tg-update.sh b/tg-update.sh index 94c8b5d..39769be 100644 --- a/tg-update.sh +++ b/tg-update.sh @@ -9,7 +9,7 @@ name= ## Parse options if [ -n "$1" ]; then - echo "Usage: tg update" >&2 + echo "Usage: tg [...] update" >&2 exit 1 fi -- 2.30.2