clikt v2.4.0 Release Notes

Release Date: 2020-01-25 // about 4 years ago
  • โž• Added

    • ๐Ÿ›  CompletionCandidates.Fixed now has a secondary convenience constructor that take a vararg of Strings
    • CompletionCadidates.Custom, which allows you to call other binaries or write a script to generate completions. This class is currently experimental. (#79)
    • Option.wrapValue and Argument.wrapValue to make it easier to reuse existing conversion functions.
    • ignoreCase parameter to choice() and enum() conversion functions.

    ๐Ÿ”„ Changed

    • 0๏ธโƒฃ option() and argument() now take optional completionCandidates parameters to override how completion is generated. The constructor and copy functions of OptionsWithValues and ProcessedArgument have changed to support default values.
    • ๐Ÿ—„ The overloads of findObject (1 2) that take a default value have been renamed findOrSetObject. The existing names are marked with @Deprecated, and IntelliJ can convert your callsites automatically. (#110)
    • 0๏ธโƒฃ enum() parameters now accept case-insensitive values by default. You change this behavior by passing ignoreCase = false to enum() (#115)

    ๐Ÿ›  Fixed

    • groupChoice help output now includes the choices in the help output metavar
    • TermUi.edit* functions could freeze on certain editors (#99, thanks @iampravikant and @sebokopter)
    • Shell completion can now handle command names with dashes. (#104)
    • Arguments with = in them could be incorrectly interpreted as options (#106)