fix invocation without subcommands to call usage function and exit 1 explicitlly
[monkeysphere.git] / src / monkeysphere-host
index 52a437349185c82894456b2dba8376066b370c45..763a37b9dbf746802e2687f8b66c9903c54869ea 100755 (executable)
@@ -238,7 +238,7 @@ export LOG_PREFIX
 
 # get subcommand
 COMMAND="$1"
-[ "$COMMAND" ] || $PGRM help
+[ "$COMMAND" ] || (usage; exit 1)
 shift
 
 case $COMMAND in