aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
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=