Skip to content

Releases: adishavit/argh

Refresh Release

28 Mar 16:04
Compare
Choose a tag to compare

Updates a bunch of generous PRs and updates doctest version.

Improved Linux install target handling

02 Apr 08:40
a1edee5
Compare
Choose a tag to compare

User Contributions

26 Nov 15:53
Compare
Choose a tag to compare

This release includes multiple user contribution including:

Conan and Bintray Support

06 Mar 09:34
Compare
Choose a tag to compare

This release adds conan package support to Argh! making it available for deployment from Bintray.

Batch Parameter Pre-registration

10 Sep 08:29
Compare
Choose a tag to compare

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';

Alt-Name Support

09 Sep 09:18
Compare
Choose a tag to compare

The main changes:

  • Multi-name flag/option support. Just provide a list of alternate names in { ... }.
    The first match will return.
    Example:
    cmdl({ "-t", "--threshold"}, 128) >> theshold;
    If either t or threshold were specified (dashes are ignored), set threshold to that value.
    Otherwise use the default: 128.

  • No need to provide argc to parser.
    You can now write:

    int main(int, char* argv[])
    {
         argh::parser cmdl(argv); // Look Ma! no argc!
         // ....
  • Some internal refactoring.