Some Clara/ command line clean-up and tweaks

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

No files matched your search

+6 -5
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)();
}