Reporter command line parser errors more eagerly

- show all “unrecognised option” errors
This commit is contained in:
Phil Nash 2013-12-20 19:06:02 +00:00
parent f385a0b13d
commit 886d9d397c
3 changed files with 35 additions and 23 deletions

View file

@ -116,7 +116,7 @@ TEST_CASE( "cmdline" ) {
.shortOpt( "d" )
.longOpt( "description" )
.hint( "some text" );
const char* argv[] = { "test", "-n 42", "-d some text" };
std::vector<Clara::Parser::Token> unusedTokens = parseInto( cli, argv, config1 );