From 85f160075af59452819b0ce25d75141593d88857 Mon Sep 17 00:00:00 2001 From: jh3141 Date: Fri, 13 Mar 2015 21:04:47 +0000 Subject: [PATCH] Return non-const ref from Catch::Session::cli() A non-const reference to the CommandLine object returned from cli() allows a custom main implementation to add additional options to the command line, which cannot be done with a const reference. --- include/catch_runner.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/catch_runner.hpp b/include/catch_runner.hpp index e6303d88..bf3a7b49 100644 --- a/include/catch_runner.hpp +++ b/include/catch_runner.hpp @@ -184,7 +184,7 @@ namespace Catch { } } - Clara::CommandLine const& cli() const { + Clara::CommandLine & cli() { return m_cli; } std::vector const& unusedTokens() const {