mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +01:00
Clara: added -r option
This commit is contained in:
parent
8333e644f2
commit
8d1100daa6
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user