ajalt / clikt

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

Add -v into the default version options #485

Closed Goooler closed 8 months ago

Goooler commented 8 months ago

-v usually equals --version like -h to --help.

Goooler commented 8 months ago

Wired, this test passed on MacOS.

JakeWharton commented 8 months ago

I tend to think -v is more often use for --verbose

Goooler commented 8 months ago

Honoring it.

https://github.com/ajalt/clikt/blob/a0233334ed21fa7e3fa6b31ed0a5e07c718a40b2/samples/plugins/src/main/kotlin/com/github/ajalt/clikt/samples/plugins/main.kt#L30