Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/catch_runner.hpp
diff options
context:
space:
mode:
authorPhil Nash2015-06-29 18:05:23 +0100
committerPhil Nash2015-06-29 18:06:15 +0100
commit21f7ef6fdcfcc98fa668028c02ba51643982e7cf (patch)
treebdf6b9ca32777405feeefa8a6f5e34481fe6f468 /include/catch_runner.hpp
parentf5fef1ebed9faaf12058d7a16223b4f617e6a5b6 (diff)
downloadcatch3-1.2.0.tar.gz
Committed to semantic versioningv1.2.0
as prompted by #365, #430, #447 and a thread on the google group. - split version bumping out of generateSingleHeader script - separate scripts for bumping each version component - "build" number only incremented for "develop" builds
Diffstat (limited to 'include/catch_runner.hpp')
-rw-r--r--include/catch_runner.hpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/catch_runner.hpp b/include/catch_runner.hpp
index bf03ccdf..8023d970 100644
--- a/include/catch_runner.hpp
+++ b/include/catch_runner.hpp
@@ -126,12 +126,7 @@ namespace Catch {
}
void showHelp( std::string const& processName ) {
- Catch::cout() << "\nCatch v" << libraryVersion.majorVersion << "."
- << libraryVersion.minorVersion << " build "
- << libraryVersion.buildNumber;
- if( libraryVersion.branchName != std::string( "master" ) )
- Catch::cout() << " (" << libraryVersion.branchName << " branch)";
- Catch::cout() << "\n";
+ Catch::cout() << "\nCatch v" << libraryVersion << "\n";
m_cli.usage( Catch::cout(), processName );
Catch::cout() << "For more detail usage please see the project docs\n" << std::endl;
@@ -148,9 +143,10 @@ namespace Catch {
catch( std::exception& ex ) {
{
Colour colourGuard( Colour::Red );
- Catch::cerr() << "\nError(s) in input:\n"
- << Text( ex.what(), TextAttributes().setIndent(2) )
- << "\n\n";
+ Catch::cerr()
+ << "\nError(s) in input:\n"
+ << Text( ex.what(), TextAttributes().setIndent(2) )
+ << "\n\n";
}
m_cli.usage( Catch::cout(), m_configData.processName );
return (std::numeric_limits<int>::max)();