summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrhatto <rhatto@ratatosk.fluxo.info>2014-03-14 13:37:51 -0300
committerrhatto <rhatto@ratatosk.fluxo.info>2014-03-14 13:37:51 -0300
commitc26e7a4cb2b5b88bca604ed9a0fb16bfc10b20b4 (patch)
treececb05ffb6d916b8d7a75e8a269211a5845ede6b /lib
parent4bc7803e03e60345c3a70dac2c50020181c6a881 (diff)
downloadkeyringer-c26e7a4cb2b5b88bca604ed9a0fb16bfc10b20b4.tar.gz
keyringer-c26e7a4cb2b5b88bca604ed9a0fb16bfc10b20b4.tar.bz2
Make usage more readable
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/functions10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 0b084af..e0cccec 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -519,14 +519,18 @@ function keyringer_usage {
printf "Keyringer $KEYRINGER_VERSION\n"
printf "Usage: %s <keyring> <action> [arguments]\n\n" "$BASENAME"
- printf "Available actions: \n\n"
- keyringer_show_actions | sed -e 's/^/\t/'
# Display only when not in a keyring context
if [ ! -z "$keyrings" ] && [ -z "$1" ]; then
- printf "\tinit <path> [remote]\n\n" $BASENAME
printf "Available keyrings: %s \n" "$keyrings"
fi
+
+ # Show available actions
+ printf "Available actions: \n\n"
+ if [ ! -z "$keyrings" ] && [ -z "$1" ]; then
+ printf "\tinit <path> [remote]\n" $BASENAME
+ fi
+ keyringer_show_actions | sed -e 's/^/\t/'
}
# Check repository integrity