mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 14:09:33 +01:00 
			
		
		
		
	Went back to Catch 1.x behaviour for -d
-d takes "yes" or "no", rather than being a standalone flag option. The default is "defaultForReporter" so the previous change actually dropped some control.
This commit is contained in:
		@@ -135,7 +135,7 @@ namespace Catch {
 | 
			
		||||
            + Opt( setWarning, "warning name" )
 | 
			
		||||
                ["-w"]["--warn"]
 | 
			
		||||
                ( "enable warnings" )
 | 
			
		||||
            + Opt( [&]( bool ) { config.showDurations = ShowDurations::Always; } )
 | 
			
		||||
            + Opt( [&]( bool flag ) { config.showDurations = flag ? ShowDurations::Always : ShowDurations::Never; }, "yes|no" )
 | 
			
		||||
                ["-d"]["--durations"]
 | 
			
		||||
                ( "show test durations" )
 | 
			
		||||
            + Opt( loadTestNamesFromFile, "filename" )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user