improve exceptions

This commit is contained in:
2026-01-08 19:42:48 +01:00
parent 6aa6c1b3c8
commit f33caa30c0
10 changed files with 21 additions and 15 deletions

View File

@@ -20,7 +20,7 @@ sealed class Command private constructor(
internal val renderer: HelpRenderer,
) {
init {
if (!name.matches(Regex.COMMAND)) throw InvalidCommand(name)
if (!name.matches(Regex.COMMAND)) throw InvalidCommandName(name)
}
fun run(args: Array<String>) {