getOption method
The getOption method is used to get the value of the option by the option name.
Implementation
String getOption(String name, {String def = ''}) {
for (var option in options) {
if (option.name == name || option.shortName == name) {
return option.value.isEmpty ? def : option.value;
}
}
return def;
}