catchorg / Clara

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

ParseResultType is rarely handled properly #79

Open vogel opened 5 years ago

vogel commented 5 years ago

Out of 4 values of ParseResultType, one is not used at all ShortCircuitSame and ShortCircuitAll is only possible for Options.

I tried to add and Arg with ShortCircuitAll to be able to implement subcommands, but it simply didn't work (as Arg::parse only returns Matched or failed values, no matter what valueRef->setValue returns).