提交 f98239c7 编写于 作者: T Thomas Voß

Support positional arguments.

Please note that this feature requires a reecent boost version, ideally 1.57 or
later.
上级 50905587
......@@ -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.
先完成此消息的编辑!
想要评论请 注册