From 8889b1a49a4125149348b1b2b87b94de6a59b097 Mon Sep 17 00:00:00 2001 From: "Taylor C. Richberger" Date: Wed, 27 Apr 2016 15:46:00 -0600 Subject: replace hello world with real start --- args.hxx | 30 +++++++++++++++++++++++++++--- 1 file 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 +#include 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 &args) + { + } + + void ParseCLI(const int argc, const char * const * const argv) + { + std::vector args; + for (int i = 1; i < argc; ++i) + { + args.emplace_back(argv[i]); + } + ParseArgs(args); + } + }; } -- cgit v1.2.1