Skip to content

Releases: jemarq04/cpp-argparse

v2.2.7

Choose a tag to compare

@github-actions github-actions released this 19 Dec 03:03
update arithmetic operator overloads for ArgumentValueList so that th…

v2.2.6

Choose a tag to compare

@github-actions github-actions released this 13 Dec 21:26
add is_false() helper function and logical operator overloads to Argu…

v2.2.5

Choose a tag to compare

@github-actions github-actions released this 01 Nov 08:59
add is_true() method for ArgumentValue objects

v2.2.4

Choose a tag to compare

@github-actions github-actions released this 18 Jul 20:37
Fixed parser-level defaults. Changed return-type of get_defaults() to…

v2.2.3

Choose a tag to compare

@github-actions github-actions released this 12 Jul 14:49
Improved function organization and added most common operator overloa…

v2.2.2

Choose a tag to compare

@github-actions github-actions released this 11 Jul 16:42

Added new typedef for the return type of ArgumentParser::parse_args() and an additional assignment operator for ArgumentValueList.

v2.2.1

Choose a tag to compare

@jemarq04 jemarq04 released this 09 Jul 19:08

Added in more methods to argparse::ArgumentValue and argparse::ArgumentValueList to help simplify some common use cases.

v2.2.0

Choose a tag to compare

@jemarq04 jemarq04 released this 09 Jul 18:54

This version adds in the argparse::ArgumentValue and argparse::ArgumentValueList helper classes. These will make it possible to retrieve typed argument values such as int num = args["num"]; instead of something like int num = strtol(args["num"][0].c_str(), nullptr, 10);. (Both of these examples assume that args is the return value of argparse::ArgumentParser::parse_args().)

The new return type of argparse::ArgumentParser::parse_args() reflects this change and now returns std::map<std::string, ArgumentValueList>.

v2.1.1

Choose a tag to compare

@jemarq04 jemarq04 released this 07 Jul 13:02

This release combines the header and implementation file into one header file for easy use in your scripts. Just add the file into your working directory and add #include "argparse.h" to your script.