All Versions
28
Latest Version
Avg Release Cycle
46 days
Latest Release
-
Changelog History
Page 1
Changelog History
Page 1
-
v3.5.0 Changes
โ Added
- โ Added
hidden
parameter toCliktCommand
, which will prevent the command from being displayed as a subcommand in help output (#353) - ๐ Publish artifacts for the
macosArm64
target. Note that this target is not tested on CI. (#352)
๐ Changed
- 0๏ธโฃ Default values for arguments will now be included in help output when
showDefaultValues=true
is set on your help formatter (#357)
๐ Fixed
- โ Added
-
v3.4.2 Changes
๐ Deprecated
TermUi.echo
,TermUi.prompt
, andTermUi.confirm
. Use the equivalent methods onCliktCommand
instead. (#344)
-
v3.4.1 Changes
โ Added
- Publish JS artifacts with new IR compiler, in addition to the legacy format
๐ Changed
- โก๏ธ Updated Kotlin to 1.6.20
-
v3.3.0 Changes
โ Added
- โ Added
default
parameter toargument().multiple()
(#305) - ๐ป
Context.originalArgv
that allows you to read the command line arguments from within a command'srun
(#290) context { envarReader = {...} }
to set a custom function to read from environment variables (#299)
๐ Changed
- 0๏ธโฃ
defaultLazy
values can now reference other parameters, as long the referenced parameters do not also reference other parameters - ๐ You can now call
CliktCommand.context
multiple times on the same command, and all builder blocks will be applied - Validate values entered to a
prompt
option, and show another prompt if the validation fails (#288) - โก๏ธ Updated kotlin to 1.5.31
๐ Fixed
- Report error when excess arguments are given to a command with
allowMultipleSubcommands=true
(#303)
- โ Added
-
v3.2.0 Changes
2021-05-14
โ Added
- 0๏ธโฃ
InputStream.isCliktParameterDefaultStdin
andOutputStream.isCliktParameterDefaultStdout
to check if the streams returned frominputStream
/outputStream
options are proxying stdin/stdout (#272)
๐ Changed
- ๐ Make parameters of
mutuallyExclusiveOptions
covariant to allow validation without explicit type annotations. (#265) - โก๏ธ Updated kotlin to 1.5.0
๐ Fixed
- Reading from an option or argument property on a command that hasn't been invoked will now always throw an
IllegalStateException
- 0๏ธโฃ
-
v3.1.0 Changes
December 12, 20202020-12-12
โ Added
- โ Added
required()
anddefaultLazy()
for nullable flag options likeswitch()
. (#240) - โ Added support for generating autocomplete scripts for Fish shells (#189)
- โ Added
CompletionCommand
andCliktCommand.completionOption()
that will print an autocomplete script when invoked, as an alternative to using environment variables.
๐ Changed
- โก๏ธ Updated Kotlin to 1.4.21
@argfiles
now allow line breaks in quoted values, which are included in the value verbatim. You can now end lines with\
to concatenate them with the following line. (#248)
- โ Added
-
v3.0.1 Changes
September 03, 20202020-09-03
๐ Deprecated
- ๐ Deprecated calling
echo
witherr
orlineSeparator
but nomessage
.
- ๐ Deprecated calling
-
v3.0.0 Changes
September 02, 20202020-09-02
โ Added
- ๐ป Clikt's JS target now supports both NodeJS and Browsers. (#198)
- 0๏ธโฃ Default values for switch options are now shown in the help. Help text can be customized using the
defaultForHelp
argument, similar to normal options. (#205) - โ Added
FlagOption.convert
(#208) - โ Added ability to use unicode NEL character (
\u0085
) to manually break lines in help output (#214) - โ Added
help("")
extension to options and arguments as an alternative to passing the help as an argument (#207) - โ Added
valueSourceKey
parameter tooption
- โ Added
check()
extensions to options and arguments as an alternative tovalidate()
- โ Added
prompt
andconfirm
functions toCliktCommand
that call theTermUi
equivalents with the current console. - โ Added
echo()
overload with no parameters to CliktCommand that prints a newline by itself. - โ Added localization support. You can set an implementation of the
Localization
interface on your context with your translations. (#227)
๐ Fixed
- Hidden options will no longer be suggested as possible typo corrections. (#202)
- Options and Arguments with
multiple(required=true)
will now show as required in help output. (#212) - Multiple short lines in a help text paragraph no longer appear dedented (#215)
๐ Changed
- โก๏ธ Updated Kotlin to 1.4.0
Argument.help
andOption.help
properties have been renamed toargumentHelp
andoptionHelp
, respectively. Thehelp
parameter names tooption()
andargument()
are unchanged.commandHelp
andcommandHelpEpilog
properties onCliktCommand
are nowopen
, so you can choose to override them instead of passinghelp
andepilog
to the constructor.- 0๏ธโฃ Replaced
MapValueSource.defaultKey
withValueSource.getKey()
, which is more customizable. Option.metavar
,Option.parameterHelp
,OptionGroup.parameterHelp
andArgument.parameterHelp
properties are now functions.- ๐ Changed constructor parameters of
CliktHelpFormatter
. Addedlocalization
and removedusageTitle
,optionsTitle
,argumentsTitle
,commandsTitle
,optionsMetavar
, andcommandMetavar
. Those strings are now defined on equivalently named functions onLocalization
.
โ Removed
- โ Removed
envvarSplit
parameter fromoption()
andconvert()
. Option values from environment variables are no longer split automatically. (#177) - โ Removed public constructors from the following classes:
ProcessedArgument
,OptionWithValues
,FlagOption
,CoOccurringOptionGroup
,ChoiceGroup
,MutuallyExclusiveOptions
. - ๐ป
MissingParameter
exception replaced withMissingOption
andMissingArgument
- โ Removed
Context.helpOptionMessage
. OverrideLocalization.helpOptionMessage
and set it on your context instead.
๐ Deprecated
@ExperimentalCompletionCandidates
and@ExperimentalValueSourceApi
annotations. These APIs no longer require an opt-in.
-
v3.0.0-rc
August 27, 2020