mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-21 20:15:39 +02:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user