From cde9c8ed5962932ea251cbb882081dcf6d27a65f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9D=82=E6=9C=AC=E3=83=9D=E3=83=86=E3=82=B3?= Date: Tue, 23 Jan 2018 14:54:42 +0800 Subject: [PATCH] Fixing clara Opt namespace Opt is under namespace Catch::clara --- docs/own-main.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/own-main.md b/docs/own-main.md index fbaff591..f363ffc9 100644 --- a/docs/own-main.md +++ b/docs/own-main.md @@ -83,9 +83,9 @@ int main( int argc, char* argv[] ) // Build a new parser on top of Catch's auto cli = session.cli() // Get Catch's composite command line parser - | Opt( height, "height" ) // bind variable to a new option, with a hint string - ["-g"]["--height"] // the option names it will respond to - ("how high?"); // description string for the help output + | Catch::clara::Opt( height, "height" ) // bind variable to a new option, with a hint string + ["-g"]["--height"] // the option names it will respond to + ("how high?"); // description string for the help output // Now pass the new composite back to Catch so it uses that session.cli( cli );