remove Regex argument/option

out of scope
This commit is contained in:
Infendro committed 2026-01-06 11:14:14 +01:00
1 parent 0a8e51c7ab
commit 8e491751f5
3 files changed
-7

No files matched your search

@@ -49,7 +49,6 @@ sealed class Argument<T : Any>(
fun boolean() = argument(BooleanParser)
inline fun <reified T : Enum<T>> enum() = argument(enumParser<T>())
fun regex() = argument(RegexParser)
}
}
@@ -92,7 +92,6 @@ sealed class Option<T : Any>(
fun boolean(vararg names: String) = option(BooleanParser, true, *names)
inline fun <reified T : Enum<T>> enum(vararg names: String) = option(enumParser<T>(), *names)
fun regex(vararg names: String) = option(RegexParser, *names)
}
}
@@ -1,5 +0,0 @@
package com.infendro.cli.parser
object RegexParser : Parser<Regex> {
override fun parse(text: String) = Regex(text)
}