From 3bc03cd617eedaa4d0fd4de5811fd22503888f46 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Fri, 18 Aug 2017 15:53:10 +0100 Subject: [PATCH] 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. --- include/internal/catch_commandline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_commandline.cpp b/include/internal/catch_commandline.cpp index d92a1c39..1410baa4 100644 --- a/include/internal/catch_commandline.cpp +++ b/include/internal/catch_commandline.cpp @@ -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" )