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