hfhbd
09/07/2022, 7:43 AMval parser = ArgParser("ejwrapper")
val jobID by parser.option(ArgType.String)
parser.parse(args) // No changes to jobID after parsing
if (jobID != null) {
val status = getJobStatus(jobID) // smart cast is not possible because jobID has a open or custom getter
Current workaround is !!
, another variable or let
ephemient
09/07/2022, 8:10 AMhfhbd
09/07/2022, 10:37 AM