aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/keyringer/functions')
-rw-r--r--lib/keyringer/functions22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 67bbc50..4ee1ead 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -223,6 +223,17 @@ function keyringer_get_new_file {
fi
}
+# Get a command argument
+function keyringer_get_command {
+ # Aditional parameters
+ COMMAND="$1"
+
+ if [ -z "$COMMAND" ]; then
+ keyringer_action_usage command
+ exit 1
+ fi
+}
+
# Run the action usage
function keyringer_action_usage {
if [ "`type -t "keyringer_usage_$BASENAME"`" == "function" ]; then
@@ -238,16 +249,5 @@ function keyringer_action_usage {
fi
}
-# Get a command argument
-function keyringer_get_command {
- # Aditional parameters
- COMMAND="$1"
-
- if [ -z "$COMMAND" ]; then
- keyringer_action_usage command
- exit 1
- fi
-}
-
# Setup environment
keyringer_set_env $*