summaryrefslogtreecommitdiff
path: root/src/monkeysphere-authentication
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-01-11 11:24:16 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-01-11 11:24:16 -0500
commit593cd32c436edeb594714dbd0d4421add227c2c3 (patch)
tree97798bf7674606122ee83fec604cc4245d56ca98 /src/monkeysphere-authentication
parentd23689f462039cb7f6fd8e3e5daee9bd08f6e5a3 (diff)
normalize output for monkeysphere when no subcommand is issued or when an unknown subcommand is issued
Diffstat (limited to 'src/monkeysphere-authentication')
-rwxr-xr-xsrc/monkeysphere-authentication8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/monkeysphere-authentication b/src/monkeysphere-authentication
index 265ca32..dd44efe 100755
--- a/src/monkeysphere-authentication
+++ b/src/monkeysphere-authentication
@@ -149,9 +149,13 @@ export GNUPGHOME
export CORE_KEYLENGTH
export LOG_PREFIX
+if [ "$#" -eq 0 ] ; then
+ usage
+ failure "Please supply a subcommand."
+fi
+
# get subcommand
COMMAND="$1"
-[ "$COMMAND" ] || (usage; exit 1)
shift
case $COMMAND in
@@ -217,6 +221,6 @@ case $COMMAND in
*)
failure "Unknown command: '$COMMAND'
-Type '$PGRM help' for usage."
+Try '$PGRM help' for usage."
;;
esac