Skip to content

DotMake.CommandLine v1.4.0

Choose a tag to compare

@calacayir calacayir released this 19 Dec 10:58
· 160 commits to main since this release
  • Added CliHelpBuilder which allows overriding HelpBuilder easier and adds color support (argument and option names
    in first column will be white for more readability).
    Additional info will be printed when the app is run:
    The first line will be product name (from AssemblyProductAttribute or AssemblyName)
    and version (from AssemblyInformationalVersionAttribute, AssemblyFileVersionAttribute or AssemblyVersionAttribute).
    Second line will be copyright (from AssemblyCopyrightAttribute).
    Removed "Description" heading, description will be directly printed for root commands and name in white, semi-colon
    and then description will be printed for sub-commands.
  • Added OutputEncoding middleware for the console (by default Encoding.UTF8 is used, this is especially required to
    print the copyright symbol).
  • Cli.Parse methods will now return an instance of the definition class whose properties were bound/populated from
    the parse result. Optional signatures will allow access to parseResult with an out parameter.