Skip to content

v0.7.0

Compare
Choose a tag to compare
@andrey-zherikov andrey-zherikov released this 13 Mar 05:37
· 142 commits to master since this release
bcfc961

Enhancements

  • Added support for subcommands through new SubCommands UDA that can be used to specify subcommands in the parent command (only SumType is supported):

    @SubCommands
    SumType!(cmd1, cmd2) command;
  • New CLI template for mixing main (the original one Main will be removed soon):

    mixin CLI!Program.main!newMain;
    mixin CLI!(CMD1, CMD2, CMD3).main!newMain
    mixin CLI!(config, Program).main!newMain;
    mixin CLI!(config, CMD1, CMD2, CMD3).main!newMain
  • Command UDA got new ShortDescription function to set a command description that's shown in "Available commands" section on help text of the parent command.

  • Added support of multi-line argument description (i.e. those that has '\n').

Breaking changes

  • ParseCLIResult is renamed to Result.