Hello @AJ Alt, is the typesafe option/argument parsing of clikt standalone? I want to run in a main kts script and because of aesthetics I’d like not to define a command class, just parse the incoming args, and use it in script body
👀 1
a
AJ Alt
09/22/2024, 12:39 AM
your options need to be gathered into something so that we know what we know what to parse, and a command is that thing. You don't have to define a
run
method, though. You could use a
NoOpCliktCommand
and treat it like a dataclass after parsing.
e
efemoney
09/22/2024, 3:34 AM
Thanks, forgot to report here but thats exactly what I went for eventually!