提交 a55c3284 编写于 作者: S Simon Fels 提交者: GitHub

Merge pull request #21 from vosst/include-positional-parameters

Support positional arguments.
......@@ -208,7 +208,7 @@ int cli::CommandWithFlagsAndAction::run(const Context& ctxt) {
return action_(cli::Command::Context{
ctxt.cin, ctxt.cout,
po::collect_unrecognized(parsed.options, po::exclude_positional)});
po::collect_unrecognized(parsed.options, po::include_positional)});
} catch (const po::error& e) {
ctxt.cout << e.what() << std::endl;
help(ctxt.cout);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册