Skip to content

V1.2.0

Choose a tag to compare

@MisterMackey MisterMackey released this 08 Jun 11:17
· 9 commits to main since this release
8343638

Added

  • All custom enum types are now allowed types. Parsing rules depend on whether the property is annotated with.
    • For Flags:
      • The value is interpreted as a 'level', and the number of times the value is encountered (as an int) is casted to the type
      • This is intended for Flags that can be repeated, i.e. -vv for 'extra verbose'
      • For the example above, an appropriate Verbosity enum would be: 'Silent=0, Verbose=1, ExtraVerbose=2'
      • The backing values for the enum should form a continuous sequence starting at 0
      • Out of range values will silently continue, the enum will hold the integer value (which may not make sense)
    • For Options and Positionals:
      • A TryParse is executed using the string value supplied
      • Failures are added to the error list

Improved

  • Added some automated testing
  • Improved build system