mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 03:02:24 +01: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:
parent
b9ec8a10ed
commit
85f160075a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user