catchorg / Clara

A simple to use, composable, command line parser for C++ 11 and beyond
Boost Software License 1.0
648 stars 67 forks source link

The functionality of required() in Opt #93

Open bigwater opened 5 years ago

bigwater commented 5 years ago

I checked the ``required()" function of an Opt and try to use it to represent a mandatory option in my project, however, seems it only affects the printed information of --help.

Is the "required()" or "isOptional()" function going to raise an exception when the option is not present when parsing the command line?

Checked the code, seems it is not implemented. // !TBD Check missing required options

Thank you.

rpavlik commented 5 years ago

Duplicate of #39