-
Example: override fun aliases(): Map<String, List<String>> =
mapOf(
"ul" to listOf("update-licenses"),
) In that case I'd expect Although, I think the aliases design might have to change to accomodate this use case. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You're right that aliases aren't part of the data passed to the help formatter, so there isn't currently any way to include them in the help automatically. I'm even convinced that adding them automatically is a good idea, since they can be defined dynamically e.g. the way git aliases work. I would suggest manually adding the info you want to your command's help or its epilog. |
Beta Was this translation helpful? Give feedback.
You're right that aliases aren't part of the data passed to the help formatter, so there isn't currently any way to include them in the help automatically. I'm even convinced that adding them automatically is a good idea, since they can be defined dynamically e.g. the way git aliases work.
I would suggest manually adding the info you want to your command's help or its epilog.