summaryrefslogtreecommitdiff
path: root/examples/file/driver.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-04-08 14:51:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-04-27 11:38:53 +0300
commit720c5a33b6a49cf328fdd7611f49153cf8f60247 (patch)
tree9725f3d1f42ec90fde84520f49647edea013ce5e /examples/file/driver.cxx
parent3183f3bb927a90783ae0aeaf190a0919377aabe4 (diff)
Separate tests and examples into individual packages
Also make cli module to be explicitly enabled via the config.cli configuration variable.
Diffstat (limited to 'examples/file/driver.cxx')
-rw-r--r--examples/file/driver.cxx35
1 files changed, 0 insertions, 35 deletions
diff --git a/examples/file/driver.cxx b/examples/file/driver.cxx
deleted file mode 100644
index d187559..0000000
--- a/examples/file/driver.cxx
+++ /dev/null
@@ -1,35 +0,0 @@
-// file : examples/file/driver.cxx
-// author : Boris Kolpackov <boris@codesynthesis.com>
-// license : MIT; see accompanying LICENSE file
-
-#include <iostream>
-#include <iterator>
-#include <algorithm>
-
-#include "options.hxx"
-
-using namespace std;
-
-int
-main (int argc, char* argv[])
-{
- try
- {
- cli::argv_file_scanner s (argc, argv, "--options-file");
- options o (s);
-
- cout << "verbosity: " << o.verbose () << endl
- << "values: ";
-
- copy (o.val ().begin (),
- o.val ().end (),
- ostream_iterator<int> (cout, " "));
-
- cerr << endl;
- }
- catch (const cli::exception& e)
- {
- cerr << e << endl;
- return 1;
- }
-}