Changed --filenames-as-tags prefix to #, added -# as short form and updated docs

This commit is contained in:
Phil Nash
2015-07-06 18:46:50 +01:00
parent 584032dfa4
commit 02e1966db3
3 changed files with 33 additions and 7 deletions

View File

@@ -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;
}