Skip to content

v1.1

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Mar 19:36

Added convenience parsers that allow easy conversion and validation of options arguments and positional

  • Integral parser function: parseIntegral<T>
  • Floating point parsing function: parseFloatingPoint<T>
  • Choice parser: ChoiceParser/WChoiceParser. Allows restricting input to a number of choices and returns index of the choice.
  • Boolean parser: BooleanParser/WBooleanParser. Based on choice parser and converts things like "1"/"0", "on"/"off", "true"/"false" to boolean true or false

If you are not using single-header/module distributions these live in <argum/type-parsers.h>