X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fmonkeysphere-authentication;h=7d08aacc12fb06d23130a539d9737e34e18459e1;hb=cf9f4e365ceb0e1c18930af3333ca3f8df53ce33;hp=f00bf5eef7658f89687f300052f6ea44f50bf57c;hpb=b3f25b417bf6557364047ed6dd0ce8ebf7e8b697;p=monkeysphere.git diff --git a/src/monkeysphere-authentication b/src/monkeysphere-authentication index f00bf5e..7d08aac 100755 --- a/src/monkeysphere-authentication +++ b/src/monkeysphere-authentication @@ -149,9 +149,13 @@ export GNUPGHOME export CORE_KEYLENGTH export LOG_PREFIX +if [ "$#" -eq 0 ] ; then + usage + failure "Please supply a subcommand." +fi + # get subcommand COMMAND="$1" -[ "$COMMAND" ] || failure "Type '$PGRM help' for usage." shift case $COMMAND in @@ -207,7 +211,7 @@ case $COMMAND in gpg_sphere "$@" ;; - 'version'|'v') + 'version'|'--version'|'v') version ;; @@ -217,6 +221,6 @@ case $COMMAND in *) failure "Unknown command: '$COMMAND' -Type '$PGRM help' for usage." +Try '$PGRM help' for usage." ;; esac