X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fmonkeysphere-host;h=4a449de20aa2818c3b5fd5cc80a282ab207d9634;hb=593cd32c436edeb594714dbd0d4421add227c2c3;hp=763a37b9dbf746802e2687f8b66c9903c54869ea;hpb=d23689f462039cb7f6fd8e3e5daee9bd08f6e5a3;p=monkeysphere.git diff --git a/src/monkeysphere-host b/src/monkeysphere-host index 763a37b..4a449de 100755 --- a/src/monkeysphere-host +++ b/src/monkeysphere-host @@ -236,9 +236,13 @@ export GNUPGHOME export HOST_FINGERPRINT export LOG_PREFIX +if [ "$#" -eq 0 ] ; then + usage + failure "Please supply a subcommand." +fi + # get subcommand COMMAND="$1" -[ "$COMMAND" ] || (usage; exit 1) shift case $COMMAND in @@ -315,6 +319,6 @@ case $COMMAND in *) failure "Unknown command: '$COMMAND' -Type '$PGRM help' for usage." +Try '$PGRM help' for usage." ;; esac