Fix command exit codes

This commit is contained in:
Akkadius
2020-07-07 02:09:39 -05:00
parent a54d92d078
commit 084e9b7a35
2 changed files with 5 additions and 9 deletions
+1 -5
View File
@@ -223,10 +223,6 @@ namespace WorldserverCommandHandler {
{
description = "Dumps server database tables";
if (cmd[{"-h", "--help"}]) {
return;
}
std::vector<std::string> arguments = {};
std::vector<std::string> options = {
"--all",
@@ -245,7 +241,7 @@ namespace WorldserverCommandHandler {
};
if (argc < 3) {
if (argc < 3 || cmd[{"-h", "--help"}]) {
EQEmuCommand::ValidateCmdInput(arguments, options, cmd, argc, argv);
return;
}