ResultArg

constructor(arg: String, fallback: R, noValueArg: Boolean = false)

Parameters

V

the value type received by this arg for processing

R

the result type provided by processing

arg

String key used in the scope passed to the provider. for example a boolean arg "test" would have a scope my.example.scope?test=false

fallback

R a fallback value in case processing or argument parsing fails

noValueArg

Optional boolean, if true the scope string will not need an =value clause: my.example.scope?noValue?valueNeeded=true