From df145ca0f391839aefbff7be9fd8353840127d60 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Thu, 14 Apr 2016 12:40:46 +0300 Subject: Revert "Issue3136" --- src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 2c277d732..76af90cde 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -371,7 +371,7 @@ static std::unique_ptr ParseArguments(int argc, char // Parse the comand line args: TCLAP::CmdLine cmd("Cuberite"); TCLAP::ValueArg slotsArg ("s", "max-players", "Maximum number of slots for the server to use, overrides setting in setting.ini", false, -1, "number", cmd); - TCLAP::MultiArg portsArg ("p", "port", "The port numbers the server should listen to", false, "port", cmd); + TCLAP::MultiArg portsArg ("p", "port", "The port number the server should listen to", false, "port", cmd); TCLAP::SwitchArg commLogArg ("", "log-comm", "Log server client communications to file", cmd); TCLAP::SwitchArg commLogInArg ("", "log-comm-in", "Log inbound server client communications to file", cmd); TCLAP::SwitchArg commLogOutArg ("", "log-comm-out", "Log outbound server client communications to file", cmd); @@ -392,7 +392,7 @@ static std::unique_ptr ParseArguments(int argc, char { for (auto port: portsArg.getValue()) { - repo->AddValue("Server", "Ports", static_cast(port)); + repo->AddValue("Server", "Port", static_cast(port)); } } if (commLogArg.getValue()) @@ -555,3 +555,7 @@ int main(int argc, char ** argv) return EXIT_SUCCESS; } + + + + -- cgit v1.2.3