Files
cli.kt/src/commonMain/kotlin/com/infendro/cli/util/Regex.kt
Infendro 4e9b358ef8 implement optional variable argument/option ranges, refactor exception handling
adapt required/optional argument handling
implement bounded/unbounded variable argument handling
2026-01-06 22:47:21 +01:00

8 lines
275 B
Kotlin

package com.infendro.cli.util
internal object Regex {
val COMMAND = Regex("""[a-zA-Z][a-zA-Z0-9]*(?:-[a-zA-Z0-9]+)*""")
val ARGUMENT = Regex("""[a-zA-Z][a-zA-Z0-9]*(?:[\-.][a-zA-Z0-9]+)*""")
val OPTION = Regex("""[a-zA-Z][a-zA-Z0-9]*(?:[\-.][a-zA-Z0-9]+)*""")
}