75lb / command-line-args

A mature, feature-complete library to parse command-line options.
MIT License
679 stars 107 forks source link

Allow for defaultOption to be set to false #123

Closed sblackstone closed 2 years ago

sblackstone commented 2 years ago

In the existing test, it will spit out an error:

Only one option definition can be the defaultOption

This is confusing if you've explictly set it to false and have no default options or one default option set to true.

75lb commented 2 years ago

Merged and released in v5.2.1 - thanks 👍