Try to fix monkeysphere-host and tests/basic for revoke-key test
[monkeysphere.git] / src / monkeysphere-authentication
index 7870c0f0ada9b13e5dfd9777a2c09e695f50d181..dd44efe8637a6392c4a9c74a1405ff95663a8fab 100755 (executable)
@@ -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" ] || $PGRM help
 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