implement type-safe fallback commands

This commit is contained in:
2026-01-07 21:44:25 +01:00
parent ecd255479a
commit 921229aa5b
40 changed files with 345 additions and 261 deletions

View File

@@ -1,11 +1,11 @@
package com.infendro.cli.exception.run
import com.infendro.cli.command.Option
import com.infendro.cli.command.option.Option
class InvalidOptionCount(
val option: Option<*>,
val count: Int,
) : RunException() {
) : RuntimeError() {
override val message: String
get() {
val expected = when {