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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhil Nash2013-06-06 18:56:43 +0100
committerPhil Nash2013-06-06 18:56:43 +0100
commite035e2835dd24c5bc679aa05b63fdf870c91ef15 (patch)
treefba03fcfb01ca2c03d72e684a7816444f2fb78ca
parenta7e657fd9b9f505212cb9a7f55d5794b127ac3eb (diff)
downloadcatch3-e035e2835dd24c5bc679aa05b63fdf870c91ef15.tar.gz
tweaks
-rw-r--r--include/catch_runner.hpp28
-rw-r--r--include/internal/catch_commandline.hpp10
2 files changed, 18 insertions, 20 deletions
diff --git a/include/catch_runner.hpp b/include/catch_runner.hpp
index e856774e..37a8ed2e 100644
--- a/include/catch_runner.hpp
+++ b/include/catch_runner.hpp
@@ -108,20 +108,6 @@ namespace Catch {
std::set<TestCase> m_testsAlreadyRun;
};
- inline void showHelp( std::string const& processName ) {
- Clara::CommandLine<ConfigData> cli = makeCommandLineParser();
-
- std::cout << "\nCatch v" << libraryVersion.majorVersion << "."
- << libraryVersion.minorVersion << " build "
- << libraryVersion.buildNumber;
- if( libraryVersion.branchName != "master" )
- std::cout << " (" << libraryVersion.branchName << " branch)";
- std::cout << "\n";
-
- cli.usage( std::cout, processName );
- std::cout << "\nFor more detail usage please see: https://github.com/philsquared/Catch/wiki/Command-line\n" << std::endl;
- }
-
class Session {
static bool alreadyInstantiated;
@@ -141,7 +127,19 @@ namespace Catch {
~Session() {
Catch::cleanUp();
}
-
+
+ void showHelp( std::string const& processName ) {
+ std::cout << "\nCatch v" << libraryVersion.majorVersion << "."
+ << libraryVersion.minorVersion << " build "
+ << libraryVersion.buildNumber;
+ if( libraryVersion.branchName != "master" )
+ std::cout << " (" << libraryVersion.branchName << " branch)";
+ std::cout << "\n";
+
+ cli.usage( std::cout, processName );
+ std::cout << "For more detail usage please see the project docs\n" << std::endl;
+ }
+
int applyCommandLine( int argc, char* const argv[], OnUnusedOptions::DoWhat unusedOptionBehaviour = OnUnusedOptions::Fail ) {
try {
unusedTokens = cli.parseInto( argc, argv, configData );
diff --git a/include/internal/catch_commandline.hpp b/include/internal/catch_commandline.hpp
index dbf45c07..4b0e655b 100644
--- a/include/internal/catch_commandline.hpp
+++ b/include/internal/catch_commandline.hpp
@@ -110,11 +110,11 @@ namespace Catch {
.longOpt( "warn" )
.argName( "warning name" );
- cli.bind( &setVerbosity )
- .describe( "level of verbosity (0=no output)" )
- .shortOpt( "v")
- .longOpt( "verbosity" )
- .argName( "level" );
+// cli.bind( &setVerbosity )
+// .describe( "level of verbosity (0=no output)" )
+// .shortOpt( "v")
+// .longOpt( "verbosity" )
+// .argName( "level" );
cli.bind( &addTestOrTags )
.describe( "which test or tests to use" )