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:
Phil Nash 2017-08-18 15:53:10 +01:00
parent 28f11a7149
commit 3bc03cd617

View File

@ -135,7 +135,7 @@ namespace Catch {
+ Opt( setWarning, "warning name" ) + Opt( setWarning, "warning name" )
["-w"]["--warn"] ["-w"]["--warn"]
( "enable warnings" ) ( "enable warnings" )
+ Opt( [&]( bool ) { config.showDurations = ShowDurations::Always; } ) + Opt( [&]( bool flag ) { config.showDurations = flag ? ShowDurations::Always : ShowDurations::Never; }, "yes|no" )
["-d"]["--durations"] ["-d"]["--durations"]
( "show test durations" ) ( "show test durations" )
+ Opt( loadTestNamesFromFile, "filename" ) + Opt( loadTestNamesFromFile, "filename" )