From 78dcdf517390e31b80c13b27107a8a29e9ee861e Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 26 Nov 2015 18:08:29 +0200 Subject: remove the old cmdoptions.h --- tests/optiontester.cpp | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 tests/optiontester.cpp (limited to 'tests/optiontester.cpp') diff --git a/tests/optiontester.cpp b/tests/optiontester.cpp deleted file mode 100644 index ccb9579..0000000 --- a/tests/optiontester.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include -#include -#include - -#include "cmdoptions.h" - -using namespace std; - -static map options = { - { "test", NO_PARAM("test") }, - { "test2", HAS_PARAM("test2") }, -}; - -int main(int argc, char **argv) -{ - CmdOptions opts(argc, argv, options); - - if (opts.error().length()) { - cerr << opts.error() << opts.usage(); - return -1; - } - - for (auto p : options) - printf("Option %s set %d param %s\n", - p.first.c_str(), opts.is_set(p.first), - opts.opt_param(p.first).c_str());; - - return 0; -} -- cgit v1.2.3