clikt v2.7.1 Release Notes

Release Date: 2020-05-19 // 12 days ago
  • 🛠 Fixed

    • 🛠 Fixed NPE thrown when in some cases when using defaultByName (#179)

Previous changes from v2.7.0

  • ➕ Added

    • Ability to use custom program exit status codes via ProgramResult.
    • inputStream and outputStream conversions for options and arguments. (#157 and #159)
    • splitPair, toMap, and associate extensions on option. (#166)
    • treatUnknownOptionsAsArgs parameter to CliktCommand. (#152)
    • 0️⃣ defaultByName function for groupChoice and groupSwitch options. (#171)

    🔄 Changed

    • ⚡️ Update Kotlin to 1.3.71
    • 👌 Improved command name inference. Now, a class like MyAppCommand will infer its commandName as my-app rather than myappcommand. You can still specify the name manually as before. (#168)

    🛠 Fixed

    • 📜 Correctly parse short options with attached values that contain =

    🚀 Thanks to @sschuberth for his contributions to this release!