clikt v2.3.0 Release Notes

Release Date: 2019-11-07 // over 4 years ago
  • 2019-11-07

    ➕ Added

    • option().groupSwitch(), which works like groupChoice(), but uses a switch() option rather than a choice() option.
    • 0️⃣ UsageError now has a statusCode parameter (which defaults to 1). If you're using ClicktCommand.main, the value of statusCode will be passed to exitProcess.

    🔄 Changed

    • 🖨 Shell completion code is now printed by throwing a PrintCompletionMessage (a subclass of PrintMessage) rather than calling echo directly.