This commit is contained in:
Nav
2024-12-30 15:42:05 +00:00
parent 020d174a2d
commit e1831f3bbf
5 changed files with 7 additions and 21 deletions

View File

@@ -37,14 +37,12 @@ int Application::run() {
const auto commandHandlerIt = commandHandlersByCommandName.find(firstArg);
if (commandHandlerIt != commandHandlersByCommandName.end()) {
// User has passed an argument that maps to a command callback - invoke the callback and shutdown
const auto returnValue = commandHandlerIt->second();
this->shutdown();
return returnValue;
}
// If the first argument didn't map to a command, we assume it's an environment name
this->selectedEnvironmentName = std::move(firstArg);
}