getProperty method
Retrieves the value associated with the given name
, or null
if not present.
The resolution logic depends on the source type and subclass behavior.
Implementation
@override
String? getProperty(String name) {
if (nonOptionArgsPropertyName == name) {
final args = getNonOptionArgs();
return args.isEmpty
? null
: StringUtils.collectionToCommaDelimitedString(args);
}
final optionValues = getOptionValues(name);
return optionValues == null
? null
: StringUtils.collectionToCommaDelimitedString(optionValues);
}