Support positional arguments.
Please note that this feature requires a reecent boost version, ideally 1.57 or later.
This commit is contained in:
parent
509055876b
commit
f98239c70d
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ int cli::CommandWithFlagsAndAction::run(const Context& ctxt) {
|
||||||
|
|
||||||
return action_(cli::Command::Context{
|
return action_(cli::Command::Context{
|
||||||
ctxt.cin, ctxt.cout,
|
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) {
|
} catch (const po::error& e) {
|
||||||
ctxt.cout << e.what() << std::endl;
|
ctxt.cout << e.what() << std::endl;
|
||||||
help(ctxt.cout);
|
help(ctxt.cout);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue