diff --git a/src/Util/CMD.h b/src/Util/CMD.h index 38338141cd3d17ae05767556e0cae3dd6c754e62..368afcf0fb4f85c7e81359043f13944e7a174176 100644 --- a/src/Util/CMD.h +++ b/src/Util/CMD.h @@ -323,11 +323,8 @@ private: class CMD_help: public CMD { public: CMD_help(){ - _parser = std::make_shared(nullptr); - (*_parser) << Option('c', "cmd", Option::ArgNone, nullptr ,false,"列出所有命令", - [](const std::shared_ptr &stream,const string &arg) { - CMDRegister::Instance().printHelp(stream); - return true; + _parser = std::make_shared([](const std::shared_ptr &stream,mINI &){ + CMDRegister::Instance().printHelp(stream); }); } ~CMD_help() {}