aboutsummaryrefslogtreecommitdiff
path: root/build/options
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-24 13:53:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-24 13:53:28 +0200
commite815af118562c68794efbd310c887acd8eae800c (patch)
treecedd8745cce259693c038c309d663a682c982e98 /build/options
parent4f52c4ed65883dacef32587cf066fbb1182c6628 (diff)
First take on the cli module plus necessary infrastructure
Diffstat (limited to 'build/options')
-rw-r--r--build/options32
1 files changed, 16 insertions, 16 deletions
diff --git a/build/options b/build/options
index 053c066..c0b9930 100644
--- a/build/options
+++ b/build/options
@@ -17,7 +17,7 @@
#include <cstddef>
#include <exception>
-namespace cli
+namespace cl
{
class unknown_mode
{
@@ -211,34 +211,34 @@ class options
options (int& argc,
char** argv,
bool erase = false,
- ::cli::unknown_mode option = ::cli::unknown_mode::fail,
- ::cli::unknown_mode argument = ::cli::unknown_mode::stop);
+ ::cl::unknown_mode option = ::cl::unknown_mode::fail,
+ ::cl::unknown_mode argument = ::cl::unknown_mode::stop);
options (int start,
int& argc,
char** argv,
bool erase = false,
- ::cli::unknown_mode option = ::cli::unknown_mode::fail,
- ::cli::unknown_mode argument = ::cli::unknown_mode::stop);
+ ::cl::unknown_mode option = ::cl::unknown_mode::fail,
+ ::cl::unknown_mode argument = ::cl::unknown_mode::stop);
options (int& argc,
char** argv,
int& end,
bool erase = false,
- ::cli::unknown_mode option = ::cli::unknown_mode::fail,
- ::cli::unknown_mode argument = ::cli::unknown_mode::stop);
+ ::cl::unknown_mode option = ::cl::unknown_mode::fail,
+ ::cl::unknown_mode argument = ::cl::unknown_mode::stop);
options (int start,
int& argc,
char** argv,
int& end,
bool erase = false,
- ::cli::unknown_mode option = ::cli::unknown_mode::fail,
- ::cli::unknown_mode argument = ::cli::unknown_mode::stop);
+ ::cl::unknown_mode option = ::cl::unknown_mode::fail,
+ ::cl::unknown_mode argument = ::cl::unknown_mode::stop);
- options (::cli::scanner&,
- ::cli::unknown_mode option = ::cli::unknown_mode::fail,
- ::cli::unknown_mode argument = ::cli::unknown_mode::stop);
+ options (::cl::scanner&,
+ ::cl::unknown_mode option = ::cl::unknown_mode::fail,
+ ::cl::unknown_mode argument = ::cl::unknown_mode::stop);
options ();
@@ -265,13 +265,13 @@ class options
//
protected:
bool
- _parse (const char*, ::cli::scanner&);
+ _parse (const char*, ::cl::scanner&);
private:
void
- _parse (::cli::scanner&,
- ::cli::unknown_mode option,
- ::cli::unknown_mode argument);
+ _parse (::cl::scanner&,
+ ::cl::unknown_mode option,
+ ::cl::unknown_mode argument);
public:
bool help_;