Implemented libidentify support

- see https://github.com/janwilmans/LibIdentify
This commit is contained in:
Phil Nash
2017-08-11 19:55:55 +01:00
parent 2ce6c74f8f
commit feaf355489
3 changed files with 21 additions and 1 deletions

View File

@@ -211,6 +211,14 @@ namespace Catch {
.describe( "should output be colourised" )
.bind( &setUseColour, "yes|no" );
cli["--use-colour"]
.describe( "should output be colourised" )
.bind( &setUseColour, "yes|no" );
cli["--libidentify"]
.describe( "report name and version according to libidentify standard" )
.bind( &ConfigData::libIdentify );
return cli;
}

View File

@@ -38,6 +38,7 @@ namespace Catch {
showHelp( false ),
showInvisibles( false ),
filenamesAsTags( false ),
libIdentify( false ),
abortAfter( -1 ),
rngSeed( 0 ),
verbosity( Verbosity::Normal ),
@@ -59,6 +60,7 @@ namespace Catch {
bool showHelp;
bool showInvisibles;
bool filenamesAsTags;
bool libIdentify;
int abortAfter;
unsigned int rngSeed;