From 8d1100daa6c7c9aa75e0ef6cbdf8578f6635ba57 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 17 May 2013 07:43:58 +0100 Subject: [PATCH] Clara: added -r option --- projects/SelfTest/CmdLineTests.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/SelfTest/CmdLineTests.cpp b/projects/SelfTest/CmdLineTests.cpp index d03d7473..dde70245 100644 --- a/projects/SelfTest/CmdLineTests.cpp +++ b/projects/SelfTest/CmdLineTests.cpp @@ -531,6 +531,7 @@ struct Config { std::string reporterName; std::string fileName; std::string suiteName; + std::string reporter; std::vector warnings; std::vector 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")