merging jrollins and micah work, reverting ui changes for m-h gen-key and import-key
[monkeysphere.git] / src / subcommands / mh / gen-key
index 37469c712857683e52bfe4dec01255f52c321be3..554c04c5a8a43ccc1cffe2290cff7e80448fad47 100755 (executable)
@@ -28,10 +28,6 @@ fingerprint_server_key >/dev/null \
 # get options
 while true ; do
        case "$1" in
-           -h|--hostname)
-               hostName="$2"
-               shift 2
-               ;;
            -l|--length)
                keyLength="$2"
                shift 2
@@ -49,6 +45,8 @@ while true ; do
                    failure "Unknown option '$1'.
 Type '$PGRM help' for usage."
                fi
+               hostName="$1"
+               shift;
                break
                ;;
        esac