Removed deprecated --force-colour option

This commit is contained in:
Phil Nash 2016-06-07 07:16:35 +01:00
parent 8a102bd13c
commit 109758131a

View File

@ -74,9 +74,6 @@ namespace Catch {
else else
throw std::runtime_error( "colour mode must be one of: auto, yes or no" ); throw std::runtime_error( "colour mode must be one of: auto, yes or no" );
} }
inline void forceColour( ConfigData& config ) {
config.useColour = UseColour::Yes;
}
inline void loadTestNamesFromFile( ConfigData& config, std::string const& _filename ) { inline void loadTestNamesFromFile( ConfigData& config, std::string const& _filename ) {
std::ifstream f( _filename.c_str() ); std::ifstream f( _filename.c_str() );
if( !f.is_open() ) if( !f.is_open() )
@ -190,10 +187,6 @@ namespace Catch {
.describe( "set a specific seed for random numbers" ) .describe( "set a specific seed for random numbers" )
.bind( &setRngSeed, "'time'|number" ); .bind( &setRngSeed, "'time'|number" );
cli["--force-colour"]
.describe( "force colourised output (deprecated)" )
.bind( &forceColour );
cli["--use-colour"] cli["--use-colour"]
.describe( "should output be colourised" ) .describe( "should output be colourised" )
.bind( &setUseColour, "yes|no" ); .bind( &setUseColour, "yes|no" );