diff options
author | Alexander Harkness <me@bearbin.net> | 2016-04-13 08:05:11 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2016-04-13 08:05:11 +0200 |
commit | 8447e4e333b075cf9f26e5be081ff4797b4aef6b (patch) | |
tree | fd7d5a8d3205de6643a5ad61e211dc6194ce56b6 /src/main.cpp | |
parent | Merge pull request #3133 from LogicParrot/readme10 (diff) | |
parent | Fixed port override code. (diff) | |
download | cuberite-8447e4e333b075cf9f26e5be081ff4797b4aef6b.tar cuberite-8447e4e333b075cf9f26e5be081ff4797b4aef6b.tar.gz cuberite-8447e4e333b075cf9f26e5be081ff4797b4aef6b.tar.bz2 cuberite-8447e4e333b075cf9f26e5be081ff4797b4aef6b.tar.lz cuberite-8447e4e333b075cf9f26e5be081ff4797b4aef6b.tar.xz cuberite-8447e4e333b075cf9f26e5be081ff4797b4aef6b.tar.zst cuberite-8447e4e333b075cf9f26e5be081ff4797b4aef6b.zip |
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp index 76af90cde..2c277d732 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -371,7 +371,7 @@ static std::unique_ptr<cMemorySettingsRepository> ParseArguments(int argc, char // Parse the comand line args: TCLAP::CmdLine cmd("Cuberite"); TCLAP::ValueArg<int> slotsArg ("s", "max-players", "Maximum number of slots for the server to use, overrides setting in setting.ini", false, -1, "number", cmd); - TCLAP::MultiArg<int> portsArg ("p", "port", "The port number the server should listen to", false, "port", cmd); + TCLAP::MultiArg<int> portsArg ("p", "port", "The port numbers 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<cMemorySettingsRepository> ParseArguments(int argc, char { for (auto port: portsArg.getValue()) { - repo->AddValue("Server", "Port", static_cast<Int64>(port)); + repo->AddValue("Server", "Ports", static_cast<Int64>(port)); } } if (commLogArg.getValue()) @@ -555,7 +555,3 @@ int main(int argc, char ** argv) return EXIT_SUCCESS; } - - - - |