diff --git a/cmdparser.hpp b/cmdparser.hpp index 9254228..3b31cb0 100644 --- a/cmdparser.hpp +++ b/cmdparser.hpp @@ -303,8 +303,11 @@ namespace cli { void enable_help() { set_callback("h", "help", std::function([this](CallbackArgs& args){ args.output << this->usage(); + #pragma warning(push) + #pragma warning(disable: 4702) exit(0); return false; + #pragma warning(pop) }), "", true); }