Skip to content

Commit

Permalink
Update README.md (#236)
Browse files Browse the repository at this point in the history
The `allowMultiple` option of `addOption` was no longer available, so this change will correct it to `addMultiOption`.
  • Loading branch information
naoty committed Feb 14, 2023
1 parent b08471e commit 9305d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ By default, values for a multi-valued option may also be separated with commas:

```dart
var parser = ArgParser();
parser.addOption('mode', allowMultiple: true);
parser.addMultiOption('mode');
var results = parser.parse(['--mode', 'on,off']);
print(results['mode']); // prints '[on, off]'
```
Expand Down

0 comments on commit 9305d5a

Please sign in to comment.