fix invocation without subcommands to call usage function and exit 1 explicitlly
authorJameson Rollins <jrollins@finestructure.net>
Mon, 11 Jan 2010 16:10:30 +0000 (11:10 -0500)
committerJameson Rollins <jrollins@finestructure.net>
Mon, 11 Jan 2010 16:10:30 +0000 (11:10 -0500)
src/monkeysphere
src/monkeysphere-authentication
src/monkeysphere-host

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
index 7870c0f0ada9b13e5dfd9777a2c09e695f50d181..265ca32957caa4f2ac6d5d12b52cdd7c458423d1 100755 (executable)
@@ -151,7 +151,7 @@ export LOG_PREFIX
 
 # get subcommand
 COMMAND="$1"
-[ "$COMMAND" ] || $PGRM help
+[ "$COMMAND" ] || (usage; exit 1)
 shift
 
 case $COMMAND in
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