implement type-safe fallback commands
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user