getExclude function
Get list of items to exclude as List from cli arguments
Implementation
List<String>? getExclude(List<String> arguments) {
var option = extractOption('-x', '--exclude', arguments);
if (option != null && option.isNotEmpty) {
return option.split(',').toList(growable: false);
}
return null;
}