Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Added Catch::clara namespace to doc for adding Opt

- Thanks to sakamoto-poteko in #1159 for point out its ommission
Commit
d5959907f58f1912351d3473b11ecd1972fe247a
Author
Phil Nash ·
Parents
31e6499e6416

Files · Download .tar.gz

Changes

 docs/own-main.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/own-main.md b/docs/own-main.md
index fbaff591..7de4b963 100644
--- a/docs/own-main.md
+++ b/docs/own-main.md
@@ -81,6 +81,7 @@ int main( int argc, char* argv[] )
   int height = 0; // Some user variable you want to be able to set
   
   // Build a new parser on top of Catch's
+  using namespace Catch::clara;
   auto cli 
     = session.cli() // Get Catch's composite command line parser
     | Opt( height, "height" ) // bind variable to a new option, with a hint string