package platform.args
import com.xenomachina.argparser.ArgParser
class ArgsProcess(parser: ArgParser) {
val data by parser.storing("-s", "--settings",
help = "path to the settings file")
val version by parser.flagging("-v", "--version",
help="Prints out the version of the program")
}
My program is currently crashing out if I don't specify the settings file. Sorry, I have read the read me but I might have missed this or misunderstood. It looks as though you do support optional arguments, but I don't understand how they are declared as such.
How would one go about adding optional arguments.
My program is currently crashing out if I don't specify the settings file. Sorry, I have read the read me but I might have missed this or misunderstood. It looks as though you do support optional arguments, but I don't understand how they are declared as such.