clikt v2.0.0 Release Notes
Release Date: 2019-05-12 // almost 5 years ago-
2019-05-12
โ Added
- Bash autocomplete script generation. A property named
completionCandidates
has been added toArgument
andOption
interfaces, and corresponding parameters have been added to the various implementation constructors, as well as theconvert
functions. You can use this to control the values autocomplete that will be suggested. option().split()
, and the correspondingOptionWithValues.valueSplit
.- ๐ Marking options as deprecated with
option().deprecated()
- You can manually set the pattern to split envvars on by passing a pattern to the
envvarSplit
parameter ofoption()
- Option groups, mutually exclusive groups, co-occurring groups, and choice options with groups
- ๐ Support for Command line argument files a.k.a "@-files"
๐ Changed
- ๐ If multiple
--
tokens are present on the command line, all subsequent occurrences after the first are now parsed as positional arguments. Previously, subsequent--
tokens were skipped. - ๐ The
PlaintextHelpFormatter
has been replaced withCliktHelpFormatter
, which is more customizable. See the docs for more info, or the new sample for an example of customizing help output to use ANSI colors. - Some of the properties and constructor parameters for
OptionWithValues
andProcessedArgument
have changed. - The
OptionDelegate
interface has changed, andGroupableOption
andParameterHolder
interfaces have been added to work with option groups. - Parameter validation now occurs after all parameter delegates have set their values, so the lambdas passed to
validate
may reference other parameters.
- Bash autocomplete script generation. A property named