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
1 changed files with 1 additions and 1 deletions

View File

@ -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" )