Added versioning

This commit is contained in:
Phil Nash 2012-11-15 22:15:41 +00:00
parent 70c5ef9eed
commit 7673a308d9
8 changed files with 188 additions and 57 deletions

View file

@ -12,6 +12,7 @@
#include "internal/catch_list.hpp"
#include "internal/catch_runner_impl.hpp"
#include "internal/catch_test_spec.h"
#include "internal/catch_version.h"
#include <fstream>
#include <stdlib.h>
@ -219,7 +220,13 @@ namespace Catch {
}
if( !displayedSpecificOption ) {
std::cout << exeName << " is a CATCH host application. Options are as follows:\n\n";
std::cout << "\nCATCH v" << libraryVersion.MajorVersion << "."
<< libraryVersion.MinorVersion << " build "
<< libraryVersion.BuildNumber;
if( libraryVersion.BranchName != "master" )
std::cout << " (" << libraryVersion.BranchName << " branch)";
std::cout << "\n\n" << exeName << " is a CATCH host application. Options are as follows:\n\n";
showUsage( std::cout );
}
}