aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-02-01 12:46:56 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-02-01 12:46:56 +0100
commit0bad1dc709ee21f3e93cfa0866fc0478a5e884a0 (patch)
tree2acd309f689c0afe9a03c823493443752d4b6960 /libexec
parent97036aeae73cc2a63219c7b792ab5f18c7d98cd1 (diff)
downloadapp.sh-0bad1dc709ee21f3e93cfa0866fc0478a5e884a0.tar.gz
app.sh-0bad1dc709ee21f3e93cfa0866fc0478a5e884a0.tar.bz2
app.sh-0bad1dc709ee21f3e93cfa0866fc0478a5e884a0.tar.xz
app.sh-0bad1dc709ee21f3e93cfa0866fc0478a5e884a0.zip
o Consistent usage() usage/flow.
Diffstat (limited to 'libexec')
-rwxr-xr-xlibexec/app-cat-conf3
-rwxr-xr-xlibexec/app-install-file3
-rwxr-xr-xlibexec/app-resolver-maven2
-rwxr-xr-xlibexec/app-run-hook4
4 files changed, 5 insertions, 7 deletions
diff --git a/libexec/app-cat-conf b/libexec/app-cat-conf
index c75955b..af382f7 100755
--- a/libexec/app-cat-conf
+++ b/libexec/app-cat-conf
@@ -32,8 +32,7 @@ do
name=$OPTARG
;;
\?)
- echo "Invalid option: $OPTARG" >&2
- exit 1
+ usage "Invalid option: $OPTARG"
;;
esac
done
diff --git a/libexec/app-install-file b/libexec/app-install-file
index c08a632..e2707a0 100755
--- a/libexec/app-install-file
+++ b/libexec/app-install-file
@@ -8,9 +8,8 @@ APPSH_HOME=$(cd $(dirname "$0")/.. && pwd)
. $APPSH_HOME/lib/common
# HEADER END
-usage() {
+usage_text() {
echo "usage: $0 -v <version> -f <file>"
- exit 1
}
version=
diff --git a/libexec/app-resolver-maven b/libexec/app-resolver-maven
index 81e85ab..8394ee1 100755
--- a/libexec/app-resolver-maven
+++ b/libexec/app-resolver-maven
@@ -8,7 +8,7 @@ APPSH_HOME=$(cd $(dirname "$0")/.. && pwd)
. $APPSH_HOME/lib/common
# HEADER END
-usage_inner() {
+usage_text() {
echo "usage: $usage_app init -r <repo> <maven url>"
echo "usage: $usage_app resolve-version"
echo "usage: $usage_app download-version -v <version> -f <download target>"
diff --git a/libexec/app-run-hook b/libexec/app-run-hook
index 6f1eab5..f1b2457 100755
--- a/libexec/app-run-hook
+++ b/libexec/app-run-hook
@@ -8,8 +8,8 @@ APPSH_HOME=$(cd $(dirname "$0")/.. && pwd)
. $APPSH_HOME/lib/common
# HEADER END
-usage() {
- echo "usage: $usage_app -v [version] -h [hook]" 2>&1
+usage_text() {
+ echo "usage: $usage_app -v [version] -h [hook]"
}
version=