diff options
Diffstat (limited to 'test/TestHelper.h')
-rw-r--r-- | test/TestHelper.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/TestHelper.h b/test/TestHelper.h index 2d08d62c..49931614 100644 --- a/test/TestHelper.h +++ b/test/TestHelper.h @@ -102,5 +102,20 @@ namespace test } \ while (0) + + class Options + { + public: + std::string ipcPath; + int tArgc; + char **tArgv; + /// Get reference to options + /// The first time used, options are parsed with argc, argv + static Options const& get(int argc = 0, char** argv = 0); + + private: + Options(int argc, char** argv = 0); + Options(Options const&) = delete; + }; } } |