Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_commandline.cpp
diff options
context:
space:
mode:
authorPhil Nash2017-08-18 15:53:10 +0100
committerPhil Nash2017-08-18 15:53:10 +0100
commit3bc03cd617eedaa4d0fd4de5811fd22503888f46 (patch)
tree47ef59ad1015539a8b75fde9a5018827f4c788c6 /include/internal/catch_commandline.cpp
parent28f11a714948d28812d3867d3f5f3e9b35a3e86e (diff)
downloadcatch3-3bc03cd617eedaa4d0fd4de5811fd22503888f46.tar.gz
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.
Diffstat (limited to 'include/internal/catch_commandline.cpp')
-rw-r--r--include/internal/catch_commandline.cpp2
1 files changed, 1 insertions, 1 deletions
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" )