summaryrefslogtreecommitdiff
path: root/tests/optiontester.cpp
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2015-11-26 18:08:29 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-11-26 22:45:18 +0200
commit78dcdf517390e31b80c13b27107a8a29e9ee861e (patch)
tree1ea22aa10dca891904d66d82ea83286937ee69c7 /tests/optiontester.cpp
parentf969a222670b9046727acf227f2f6435475302d2 (diff)
remove the old cmdoptions.h
Diffstat (limited to 'tests/optiontester.cpp')
-rw-r--r--tests/optiontester.cpp29
1 files changed, 0 insertions, 29 deletions
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 <cstdio>
-#include <algorithm>
-#include <iostream>
-
-#include "cmdoptions.h"
-
-using namespace std;
-
-static map<string, CmdOption> 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;
-}