summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-07-11 16:44:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-07-11 16:44:20 -0300
commit8da5023df4b4e3ec55bf52b4377920a8ece941e2 (patch)
tree95cf758e3366f9a2edc549bb8905e4c40c92693d /lib
parent50e14d3d46f880519a6b258528c65ccd2caf02cc (diff)
downloadkeyringer-8da5023df4b4e3ec55bf52b4377920a8ece941e2.tar.gz
keyringer-8da5023df4b4e3ec55bf52b4377920a8ece941e2.tar.bz2
Better usage handling
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/functions12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 1d29157..3fa7170 100644
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -342,6 +342,18 @@ function keyringer_action_usage {
fi
}
+# Return available actions
+function keyringer_show_actions {
+ ls $ACTIONS
+}
+
+# Usage
+function keyringer_usage {
+ printf "Usage: %s <keyring> <action> [arguments]\n" "$BASENAME"
+ printf "Available commands: \n"
+ keyringer_show_actions | sed -e 's/^/\t/'
+}
+
# Check recipients
function keyringer_check_recipients {
if [ "$KEYRINGER_CHECK_RECIPIENTS" == "false" ]; then