Skip to content

Releases: ajalt/clikt

3.5.4

20 Jun 17:57
Compare
Choose a tag to compare

Fixed

  • Revert JVM jars to compile with Java 8 bytecode

3.5.3

19 Jun 18:07
Compare
Choose a tag to compare

Changed

  • Updated Kotlin to 1.8.22

Fixed

  • Context is now set properly on NoSuchOption exceptions when thrown from subcommands. (#399)
  • When treatUnknownOptionsAsArgs is true, grouped unknown short options will now be treated as arguments rather than reporting an error.

3.5.2

26 Feb 20:20
Compare
Choose a tag to compare

Changed

  • Updated Kotlin to 1.8.10

Fixed

  • Fix CliktCommand.prompt on NodeJS targets that would hang due to KT-55817 (#387)

3.5.1

27 Dec 21:36
Compare
Choose a tag to compare

Fixed

  • Support unicode in environment variable values on Native Windows. (#362)
  • Support environment variables for options in a mutually exclusive options group. (#384)

3.5.0

12 Jun 16:50
Compare
Choose a tag to compare

Added

  • Added hidden parameter to CliktCommand, 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

  • Default values for arguments will now be included in help output when showDefaultValues=true is set on your help formatter (#357)

Fixed

  • Fix flags and other options with defaults not being usable in mutuallyExclusiveOptions (#349)
  • Fix CompletionCommand generating completion for itself (#355)

3.4.2

25 Apr 03:58
Compare
Choose a tag to compare

Deprecated

  • TermUi.echo, TermUi.prompt, and TermUi.confirm. Use the equivalent methods on CliktCommand instead. (#344)

3.4.1

09 Apr 17:34
Compare
Choose a tag to compare

Added

  • Publish JS artifacts with new IR compiler, in addition to the legacy format

Changed

  • Updated Kotlin to 1.6.20

3.4.0

16 Jan 21:10
Compare
Choose a tag to compare

Changed

  • Updated Kotlin to 1.6.10
  • unique() now works with any option with a list type, not just multiple() options (#332)

Fixed

  • Fixed co-occurring option groups returning null when all options in the group are defined in environment variables (#330)

3.2.0

14 May 18:37
Compare
Choose a tag to compare

Added

  • InputStream.isCliktParameterDefaultStdin and OutputStream.isCliktParameterDefaultStdout to check if the streams returned from inputStream/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

3.1.0

12 Dec 18:31
Compare
Choose a tag to compare

Added

  • Added required() and defaultLazy() for nullable flag options like switch().
  • Added support for generating autocomplete scripts for Fish shells (thanks to @faogustavo for the initial PR)
  • Added CompletionCommand and CliktCommand.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.