Clara: added -r option

This commit is contained in:
Phil Nash 2013-05-17 07:43:58 +01:00
parent 8333e644f2
commit 8d1100daa6
1 changed files with 7 additions and 0 deletions

View File

@ -531,6 +531,7 @@ struct Config {
std::string reporterName;
std::string fileName;
std::string suiteName;
std::string reporter;
std::vector<std::string> warnings;
std::vector<std::string> testsOrTags;
@ -581,6 +582,12 @@ TEST_CASE( "growing new Catch cli" ) {
.longOpt( "out" )
.argName( "file name" );
cli.bind( &Config::reporter )
.describe( "e.g. console | xml | junit" )
.shortOpt( "r")
.longOpt( "reporter" )
.argName( "reporter name[:filename]" );
cli.bind( &Config::suiteName )
.describe( "suite name" )
.shortOpt( "n")