Skip to content

v1.4.0

Latest
Compare
Choose a tag to compare
@andrey-zherikov andrey-zherikov released this 31 Oct 02:34

Enhancements

  • CLI.main can now accept struct with disabled copy constructor.
  • Main function passed to CLI.main can accept parameter by reference.
  • Boolean values (yes,y,true,no,n and false) are now parsed case-insensitively.
  • New checks:
    • Argument name can't start with Config.namedArgChar (dash - by default).
    • For positional arguments within a command:
      • There should be no gaps in indexes, e.g. 0,1,3,4 indexes are not allowed because 2 is missed.
      • Indexes should be unique, e.g. 0,1,2,3,2 indexes are not allowed because 2 is repeated.
      • Number of values should be fixed (i.e. minimum number of values should be the same as maximum number of values) unless it's the last positional argument.
      • Required positional arguments must go before optional positional arguments.
      • Optional positional arguments are not allowed if command has default subcommand.