ajalt / clikt

Multiplatform command line interface parsing for Kotlin
https://ajalt.github.io/clikt/
Apache License 2.0
2.54k stars 121 forks source link

Replacement for `FlagOption` #437

Closed asaha123 closed 1 year ago

asaha123 commented 1 year ago

Hey folks, new to the library. Just upgrading from 2.6.x to 4.x. https://github.com/ajalt/clikt/commit/3c56cacb56b4f83522fc32993cca753c0503fdb8 removed FlagOption. Is the correct replacement: OptionWithValues<Boolean, Boolean, Boolean>?

For a little more context:

We had a type alias:

typealias BooleanOption = FlagOption<Boolean>

Is the correct fix as follows?

typealias BooleanOption = OptionWithValues<Boolean, Boolean, Boolean>

This is also not mentioned in the release notes I think.

Thanks.

ajalt commented 1 year ago

You're correct. Thanks for the heads up, I updated the changelog.

asaha123 commented 1 year ago

thanks @ajalt !