Commit 8dba0d3f authored by xuebingbing's avatar xuebingbing

新增不指定参数执行程序显示帮助信息“

parent 4f4b58ba
......@@ -130,7 +130,7 @@ cxxopts::ParseResult parse(int argc, char* argv[])
auto result = options.parse(argc, argv);
if (result.count("help"))
if (0 == result.arguments().size() || result.count("help"))
{
std::cout << options.help({ "" , "pcd2las.auto", "pcd2las" }) << std::endl;
exit(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment