From bcec6b61fb874910e17bb3762c823745ae12bd1c Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Thu, 31 Dec 2009 19:38:06 -0500 Subject: [PATCH] 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. --- src/monkeysphere | 2 +- src/monkeysphere-authentication | 2 +- src/monkeysphere-host | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.26.2