From: Micah Anderson Date: Fri, 1 Jan 2010 00:38:06 +0000 (-0500) Subject: Its more useful and standard to actually output the 'help' output when X-Git-Tag: monkeysphere_0.27~7^2^2 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=bcec6b61fb874910e17bb3762c823745ae12bd1c;p=monkeysphere.git Its more useful and standard to actually output the 'help' output when an improper number of arguments is passed, rather output a line telling the user how to get the help output. --- diff --git a/src/monkeysphere b/src/monkeysphere index 9fff77a..14d2bf0 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -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 diff --git a/src/monkeysphere-authentication b/src/monkeysphere-authentication index df7d9bc..057d14e 100755 --- a/src/monkeysphere-authentication +++ b/src/monkeysphere-authentication @@ -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 diff --git a/src/monkeysphere-host b/src/monkeysphere-host index 4ec533d..52a4373 100755 --- a/src/monkeysphere-host +++ b/src/monkeysphere-host @@ -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