fix typo in --help

This commit is contained in:
Lion Kortlepel
2021-12-05 01:40:39 +01:00
parent 479bb9f931
commit b33d50361c
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -33,7 +33,7 @@ ARGUMENTS:
--working-directory=/path/to/folder --working-directory=/path/to/folder
Sets the working directory of the Server. Sets the working directory of the Server.
All paths are considered relative to this, All paths are considered relative to this,
including the path given in --path. including the path given in --config.
--version --version
Prints version info and exits. Prints version info and exits.
@@ -111,7 +111,7 @@ int BeamMPServerMain(MainArguments Arguments) {
if (Parser.FoundArgument({ "working-directory" })) { if (Parser.FoundArgument({ "working-directory" })) {
auto MaybeWorkingDirectory = Parser.GetValueOfArgument({ "working-directory" }); auto MaybeWorkingDirectory = Parser.GetValueOfArgument({ "working-directory" });
if (MaybeWorkingDirectory.has_value()) { if (MaybeWorkingDirectory.has_value()) {
beammp_info("Custom working directory requested via commandline arguments: '" + ConfigPath + "'"); beammp_info("Custom working directory requested via commandline arguments: '" + MaybeWorkingDirectory.value() + "'");
try { try {
fs::current_path(fs::path(MaybeWorkingDirectory.value())); fs::current_path(fs::path(MaybeWorkingDirectory.value()));
} catch (const std::exception& e) { } catch (const std::exception& e) {
@@ -156,6 +156,7 @@ int BeamMPServerMain(MainArguments Arguments) {
Application::CheckForUpdates(); Application::CheckForUpdates();
RegisterThread("Main(Waiting)"); RegisterThread("Main(Waiting)");
while (!Shutdown) { while (!Shutdown) {
std::this_thread::sleep_for(std::chrono::milliseconds(50)); std::this_thread::sleep_for(std::chrono::milliseconds(50));
} }