Lines Matching full:catch
5 [Let Catch take full control of args and config](#let-catch-take-full-control-of-args-and-config)<b…
10 The easiest way to use Catch is to let it supply ```main()``` for you and handle configuring itself…
12 This is achieved by writing ```#define CATCH_CONFIG_MAIN``` before the ```#include "catch.hpp"``` i…
14 …`` instead. Now you are free to write ```main()``` as normal and call into Catch yourself manually.
18 ## Let Catch take full control of args and config
20 If you just need to have code that executes before and/ or after Catch this is the simplest option.
24 #include "catch.hpp"
29 int result = Catch::Session().run( argc, argv );
39 If you still want Catch to process the command line, but you want to programmatically tweak the con…
43 #include "catch.hpp"
47 Catch::Session session; // There must be exactly one instance
75 Catch embeds a powerful command line parser called [Clara](https://github.com/philsquared/Clara).
77 so extending Catch's own command line options is now easy.
81 #include "catch.hpp"
85 Catch::Session session; // There must be exactly one instance
89 // Build a new parser on top of Catch's
90 using namespace Catch::clara;
92 = session.cli() // Get Catch's composite command line parser
97 // Now pass the new composite back to Catch so it uses that
100 // Let Catch (using Clara) parse the command line
118 Catch provides a triplet of macros providing the header's version,