Skip to content

Batch Parameter Pre-registration

Compare
Choose a tag to compare
@adishavit adishavit released this 10 Sep 08:29
· 46 commits to master since this release

The main changes:

  • Adds add_params({...}) method for batch pre-registration of options as parameters.
  • Since pre-registration has to be done before parsing, we might as well just use the ctor, so adds new ctor for batch pre-registration.
  • Adds begin() and end() for directly using range-for over positional args:
   for (auto& pos_arg : cmdl)
     cout << '\t' << pos_arg << '\n';