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

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2015-07-06 18:46:50 +0100
committerPhil Nash2015-07-06 18:46:50 +0100
commit02e1966db3fc28cc7a61d731bb6dd7ed645cc9b2 (patch)
treefe6ce319af54bc031cd030bb63903b65e6388dc5 /include
parent584032dfa4b66a2610049645480fc7846d735b79 (diff)
downloadcatch3-02e1966db3fc28cc7a61d731bb6dd7ed645cc9b2.tar.gz
Changed --filenames-as-tags prefix to #, added -# as short form and updated docs
Diffstat (limited to 'include')
-rw-r--r--include/catch_runner.hpp2
-rw-r--r--include/internal/catch_commandline.hpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/include/catch_runner.hpp b/include/catch_runner.hpp
index 4234f601..ac7a9148 100644
--- a/include/catch_runner.hpp
+++ b/include/catch_runner.hpp
@@ -120,7 +120,7 @@ namespace Catch {
if( lastDot != std::string::npos )
filename = filename.substr( 0, lastDot );
- tags.insert( "@" + filename );
+ tags.insert( "#" + filename );
setTags( test, tags );
}
}
diff --git a/include/internal/catch_commandline.hpp b/include/internal/catch_commandline.hpp
index d05cee96..d48d0d14 100644
--- a/include/internal/catch_commandline.hpp
+++ b/include/internal/catch_commandline.hpp
@@ -153,6 +153,10 @@ namespace Catch {
.describe( "load test names to run from a file" )
.bind( &loadTestNamesFromFile, "filename" );
+ cli["-#"]["--filenames-as-tags"]
+ .describe( "adds a tag for the filename" )
+ .bind( &ConfigData::filenamesAsTags );
+
// Less common commands which don't have a short form
cli["--list-test-names-only"]
.describe( "list all/matching test cases names only" )
@@ -173,10 +177,6 @@ namespace Catch {
cli["--force-colour"]
.describe( "force colourised output" )
.bind( &ConfigData::forceColour );
-
- cli["--filenames-as-tags"]
- .describe( "adds a tag for the filename" )
- .bind( &ConfigData::filenamesAsTags );
return cli;
}