mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Changed --filenames-as-tags prefix to #, added -# as short form and updated docs
This commit is contained in:
		| @@ -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 ); | ||||
|         } | ||||
|     } | ||||
|   | ||||
| @@ -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; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash