|
|
@ -30,10 +30,10 @@ int Main::main(int argc, char *argv[]) { |
|
|
|
/**
|
|
|
|
* @brief 解析命令行参数 |
|
|
|
*/ |
|
|
|
string test_mode; |
|
|
|
string test_mode = "false"; |
|
|
|
auto cli = ((required("--test_mode") & value("test_mode", test_mode)).doc("test_mode")); |
|
|
|
if (!parse(argc, argv, cli)) { |
|
|
|
test_mode = "true"; |
|
|
|
test_mode = "false"; |
|
|
|
// cout << make_man_page(cli, argv[0]);
|
|
|
|
// exit(-1);
|
|
|
|
} |
|
|
|