dart-lang / core

This repository is home to core Dart packages.
https://pub.dev/publishers/dart.dev
BSD 3-Clause "New" or "Revised" License
19 stars 7 forks source link

Allow `multiOption` to be mandatory #100

Open bryanoltman opened 7 months ago

bryanoltman commented 7 months ago

ArgParser's addOption method accepts a mandatory parameter which, when true, will output the following if arguments not containing that option are parsed:

Invalid argument(s): Option mandatory-option is mandatory.

It would be nice to have this for addMultiOption as well.