chiark / gitweb /
Account for direct-tg arguments in Usage strings
authorPetr Baudis <pasky@suse.cz>
Tue, 9 Sep 2008 20:21:59 +0000 (22:21 +0200)
committerPetr Baudis <pasky@suse.cz>
Tue, 9 Sep 2008 20:21:59 +0000 (22:21 +0200)
tg-create.sh
tg-delete.sh
tg-export.sh
tg-info.sh
tg-patch.sh
tg-remote.sh
tg-summary.sh
tg-update.sh

index 2cab492..fee7dff 100644 (file)
@@ -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
index f0114cc..075d15c 100644 (file)
@@ -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)"
index 7fcafbe..654b38b 100644 (file)
@@ -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)"
index 4de74cc..b5b92f6 100644 (file)
@@ -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)"
index 79e5cb3..7a24718 100644 (file)
@@ -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)"
index dd3d666..4f60c73 100644 (file)
@@ -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";;
index 4ffebce..409f456 100644 (file)
@@ -7,7 +7,7 @@
 ## Parse options
 
 if [ -n "$1" ]; then
-       echo "Usage: tg summary" >&2
+       echo "Usage: tg [...] summary" >&2
        exit 1
 fi
 
index 94c8b5d..39769be 100644 (file)
@@ -9,7 +9,7 @@ name=
 ## Parse options
 
 if [ -n "$1" ]; then
-       echo "Usage: tg update" >&2
+       echo "Usage: tg [...] update" >&2
        exit 1
 fi