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.
This commit is contained in:
jh3141 2015-03-13 21:04:47 +00:00
parent b9ec8a10ed
commit 85f160075a

View File

@ -184,7 +184,7 @@ namespace Catch {
}
}
Clara::CommandLine<ConfigData> const& cli() const {
Clara::CommandLine<ConfigData> & cli() {
return m_cli;
}
std::vector<Clara::Parser::Token> const& unusedTokens() const {