mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +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 reporterName;
|
||||||
std::string fileName;
|
std::string fileName;
|
||||||
std::string suiteName;
|
std::string suiteName;
|
||||||
|
std::string reporter;
|
||||||
std::vector<std::string> warnings;
|
std::vector<std::string> warnings;
|
||||||
std::vector<std::string> testsOrTags;
|
std::vector<std::string> testsOrTags;
|
||||||
|
|
||||||
@ -581,6 +582,12 @@ TEST_CASE( "growing new Catch cli" ) {
|
|||||||
.longOpt( "out" )
|
.longOpt( "out" )
|
||||||
.argName( "file name" );
|
.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 )
|
cli.bind( &Config::suiteName )
|
||||||
.describe( "suite name" )
|
.describe( "suite name" )
|
||||||
.shortOpt( "n")
|
.shortOpt( "n")
|
||||||
|
Loading…
Reference in New Issue
Block a user