mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 19:22:25 +01:00
Fixing clara Opt namespace
Opt is under namespace Catch::clara
This commit is contained in:
parent
b0f4f16ee0
commit
cde9c8ed59
@ -83,9 +83,9 @@ int main( int argc, char* argv[] )
|
|||||||
// Build a new parser on top of Catch's
|
// Build a new parser on top of Catch's
|
||||||
auto cli
|
auto cli
|
||||||
= session.cli() // Get Catch's composite command line parser
|
= session.cli() // Get Catch's composite command line parser
|
||||||
| Opt( height, "height" ) // bind variable to a new option, with a hint string
|
| Catch::clara::Opt( height, "height" ) // bind variable to a new option, with a hint string
|
||||||
["-g"]["--height"] // the option names it will respond to
|
["-g"]["--height"] // the option names it will respond to
|
||||||
("how high?"); // description string for the help output
|
("how high?"); // description string for the help output
|
||||||
|
|
||||||
// Now pass the new composite back to Catch so it uses that
|
// Now pass the new composite back to Catch so it uses that
|
||||||
session.cli( cli );
|
session.cli( cli );
|
||||||
|
Loading…
Reference in New Issue
Block a user