Its more useful and standard to actually output the 'help' output when
authorMicah Anderson <micah@riseup.net>
Fri, 1 Jan 2010 00:38:06 +0000 (19:38 -0500)
committerMicah Anderson <micah@riseup.net>
Mon, 4 Jan 2010 20:10:47 +0000 (15:10 -0500)
an improper number of arguments is passed, rather output a line
telling the user how to get the help output.

src/monkeysphere
src/monkeysphere-authentication
src/monkeysphere-host

index 9fff77a968567e275991ccd9e2549d96612aa4d0..14d2bf042593f9ae1f8995a57cbbcf7bf40c33ce 100755 (executable)
@@ -216,7 +216,7 @@ export LOG_PREFIX
 
 # get subcommand
 COMMAND="$1"
-[ "$COMMAND" ] || failure "Type '$PGRM help' for usage."
+[ "$COMMAND" ] || $PGRM help
 shift
 
 case $COMMAND in
index df7d9bcf6ddf8fd2db17971973a37b7ca20ec0c8..057d14eb85179678727cb359d06c39e539c3b31d 100755 (executable)
@@ -152,7 +152,7 @@ export LOG_PREFIX
 
 # get subcommand
 COMMAND="$1"
-[ "$COMMAND" ] || failure "Type '$PGRM help' for usage."
+[ "$COMMAND" ] || $PGRM help
 shift
 
 case $COMMAND in
index 4ec533d5e5ff92dd9733ac3a4f4b339e0cf65333..52a437349185c82894456b2dba8376066b370c45 100755 (executable)
@@ -238,7 +238,7 @@ export LOG_PREFIX
 
 # get subcommand
 COMMAND="$1"
-[ "$COMMAND" ] || failure "Type '$PGRM help' for usage."
+[ "$COMMAND" ] || $PGRM help
 shift
 
 case $COMMAND in