-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
Description
You only erase the command from the list, but don't delete it. Potential fix:
void disable_help() {
for (auto command = _commands.begin(); command != _commands.end(); ++command) {
if ((*command)->name == "h" && (*command)->alternative == "--help") {
delete *command;
_commands.erase(command);
break;
}
}
}
Reactions are currently unavailable