mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-23 04:55:40 +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;
|
return m_cli;
|
||||||
}
|
}
|
||||||
std::vector<Clara::Parser::Token> const& unusedTokens() const {
|
std::vector<Clara::Parser::Token> const& unusedTokens() const {
|
||||||
|
Reference in New Issue
Block a user