c++应用程序解析输入参数的示例如下:
#include <string>
#include <getopt.h> //option解析输入参数
const std::string helpInfo =
R"(Usage: test --ipath ./ --debug ./
--ipath input file path
--debug output file path
--help help information
)";
const struct option LongOptions[] =
{
{
"ipath", required_argument, NULL, 'i'},
{
"debug", required_argument, NUL