Merge pull request #21 from vosst/include-positional-parameters
Support positional arguments.
This commit is contained in:
commit
a55c32844c
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