             return servers
         } else {
             log.debug("No 'servers.json' configuration found, using defaults.")
-            let port = cliPort ?? 8080
+            let port = cliPort(arguments: arguments) ?? 8080
             return [
                 "default": ("0.0.0.0", port, .none)
             ]

/**
    To support old form quick port setting through config.
*/
let cliPort: Int? = {
    return CommandLine.arguments.value(for: "port")?.int
}()

                }

                let host = config["servers", name, "host"]?.string ?? "0.0.0.0"
                let port = config["servers", name, "port"]?.int ?? cliPort(arguments: arguments) ?? 8080

                servers[name] = (host, port, securityLayer)
            }
