diff options
| author | Phil Nash | 2017-08-18 15:53:10 +0100 |
|---|---|---|
| committer | Phil Nash | 2017-08-18 15:53:10 +0100 |
| commit | 3bc03cd617eedaa4d0fd4de5811fd22503888f46 (patch) | |
| tree | 47ef59ad1015539a8b75fde9a5018827f4c788c6 /include/internal/catch_commandline.cpp | |
| parent | 28f11a714948d28812d3867d3f5f3e9b35a3e86e (diff) | |
| download | catch3-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.cpp | 2 |
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" ) |