resyn implementation of m-s gen-key with the help output
[monkeysphere.git] / src / monkeysphere-server
index 2531437eb83f4b3a2c1d3d98b17548ba138312b3..3caa63d4ac18061537cb2a111fdcd16f7c91b34e 100755 (executable)
@@ -406,10 +406,6 @@ gen_key() {
     # get options
     while true ; do
        case "$1" in
-           -h|--hostname)
-               hostName="$2"
-               shift 2
-               ;;
            -l|--length)
                keyLength="$2"
                shift 2
@@ -427,6 +423,7 @@ gen_key() {
                    failure "Unknown option '$1'.
 Type '$PGRM help' for usage."
                fi
+               hostName="$1"
                break
                ;;
        esac