Some Clara/ command line clean-up and tweaks

This commit is contained in:
Phil Nash 2013-08-16 18:57:57 +01:00
parent f41fad7e20
commit 1870ca8455
4 changed files with 35 additions and 34 deletions

View file

@ -150,11 +150,12 @@ namespace Catch {
m_config.reset();
}
catch( std::exception& ex ) {
std::cerr << "\nError in input:\n"
<< Text( ex.what(), TextAttributes()
.setInitialIndent(2)
.setIndent(4) )
<< "\n\n";
{
Colour colourGuard( Colour::Red );
std::cerr << "\nError in input:\n"
<< Text( ex.what(), TextAttributes().setIndent(2) )
<< "\n\n";
}
m_cli.usage( std::cout, m_configData.processName );
return (std::numeric_limits<int>::max)();
}