GetOpt.ArgDescr
enum ArgDescr[a: Type]Sourcecase NoArg(a)case ReqArg(String -> Option[a], String)case OptArg(Option[String] -> Option[a], String)ArgDescr defines whether or not the option takes an argument.
NoArgexpects no argument. The constructor takes a value of typeaindicating the option that has been recognized.ReqArgmandates an argument. The constructor takes a function to decode the argument and description string.OptArgoptionally requires an argument. The constructor takes a function to decode the argument and description string.
The "decode" functions are expected to produce Some(_) when decoding is successful, and None to indicate
failure.