You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to make this a not breaking change, we could derive allowedHelp from allowed if allowed is a Map, but otherwise still accept an allowed List, and an allowedHelp.
This issue was originally filed by @seaneagan
Currently it looks something like:
var allowed = {
'x': 'x help',
'y': 'y help',
'z': 'z help',
}
parser.addOption('foo', allowed: allowed.keys.toList(), allowedHelp: allowed);
Nicer would be:
parser.addOption('foo', allowed: {
'x': 'x help',
'y': 'y help',
'z': 'z help',
});
So allowed: would allow Iterable<String> or Map<String, String>
The text was updated successfully, but these errors were encountered: