catchorg / Clara

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

Exception on mandatory options? #16

Open GatoRat opened 8 years ago

GatoRat commented 8 years ago

Is there a way to make positional arguments mandatory without manually checking them?

philsquared commented 8 years ago

Not currently. Sounds like something that can and should be added, though.

philsquared commented 7 years ago

Still not quite implemented, even in V1.0 - but not forgotten, and it's been considered as part of the rework - just need to get around to it (first priority was getting the new version in shape to drop in to Catch).

aldanor commented 6 years ago

Found myself checking them all the time too manually, with the new version -- would sure be a nice thing to have built-in.