dart-lang / core

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

Analogue of '::' GNU getopt extension? #92

Open yvs2014 opened 1 year ago

yvs2014 commented 1 year ago

Hello,

I can't find out if dart-args has support of 'optional arguments of options'? (If not, it's a nice feature to have with args parser)

It's about funcionality like this (taken from getopt(3)): Two colons mean an option takes an optional arg; ... This is a GNU extension

natebosch commented 1 year ago

This is not an existing feature. I think we could consider this if the design is simple enough, but would probably hold off on adding it if its overly complex.