aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor C. Richberger <Taywee@gmx.com>2016-04-27 15:46:00 -0600
committerTaylor C. Richberger <Taywee@gmx.com>2016-04-27 15:46:00 -0600
commit8889b1a49a4125149348b1b2b87b94de6a59b097 (patch)
treeaac8c45b94afb31d3a5dd3539bd4309a6413944f
parentinitial buildout (diff)
downloadargs.hxx-8889b1a49a4125149348b1b2b87b94de6a59b097.tar.xz
replace hello world with real start
-rw-r--r--args.hxx30
1 files changed, 27 insertions, 3 deletions
diff --git a/args.hxx b/args.hxx
index 9398cac..c364f39 100644
--- a/args.hxx
+++ b/args.hxx
@@ -3,11 +3,35 @@
*/
#include <string>
+#include <vector>
namespace args
{
- std::string hello()
+ class ArgumentParser
{
- return "Hello, World!";
- }
+ private:
+ std::string prog;
+ std::string description;
+ std::string epilog;
+
+ public:
+ ArgumentParser(
+ const std::string &prog,
+ const std::string &description,
+ const std::string &epilog = std::string()) : prog(prog), description(description), epilog(epilog) {}
+
+ void ParseArgs(const std::vector<std::string> &args)
+ {
+ }
+
+ void ParseCLI(const int argc, const char * const * const argv)
+ {
+ std::vector<std::string> args;
+ for (int i = 1; i < argc; ++i)
+ {
+ args.emplace_back(argv[i]);
+ }
+ ParseArgs(args);
+ }
+ };
}