Skip to content

v1.3.0

Latest
Compare
Choose a tag to compare
@andrey-zherikov andrey-zherikov released this 10 May 20:51
· 49 commits to master since this release
08e5ea0

Enhancements

  • You can now customize what values are accepted in command line for enum types:
    struct T
    {
        enum Fruit {
            apple,
            @ArgumentValue("no-apple","noapple")
            noapple
        };
        Fruit a;
    }
    assert(CLI!T.parseArgs!((T t) { assert(t == T(T.Fruit.apple)); })(["-a","apple"]) == 0);
    assert(CLI!T.parseArgs!((T t) { assert(t == T(T.Fruit.noapple)); })(["-a=no-apple"]) == 0);
    assert(CLI!T.parseArgs!((T t) { assert(t == T(T.Fruit.noapple)); })(["-a","noapple"]) == 0);

Other changes

  • Code has been widely refactored to have more clear responsibility separation between components
  • New testing mode in CI: -preview=in