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

Aliases should support tokens that look like other options #535

Closed ajalt closed 2 months ago

ajalt commented 2 months ago

Discussed in https://github.com/ajalt/clikt/discussions/534

Originally posted by **gbsmith** August 7, 2024 If I have this ``` override fun aliases(): Map> = mapOf( "--list" to listOf("--command=list"), "ls" to listOf("--command=list"), ) ``` The `ls` alias works as expected, while `--list` spits out ``` Error: no such option --list Error: missing option --command ```

This should be easy to support.