diff options
| author | Taylor C. Richberger <Taywee@gmx.com> | 2016-04-27 15:46:00 -0600 | 
|---|---|---|
| committer | Taylor C. Richberger <Taywee@gmx.com> | 2016-04-27 15:46:00 -0600 | 
| commit | 8889b1a49a4125149348b1b2b87b94de6a59b097 (patch) | |
| tree | aac8c45b94afb31d3a5dd3539bd4309a6413944f | |
| parent | initial buildout (diff) | |
| download | args.hxx-8889b1a49a4125149348b1b2b87b94de6a59b097.tar.xz | |
replace hello world with real start
| -rw-r--r-- | args.hxx | 30 | 
1 files changed, 27 insertions, 3 deletions
@@ -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); +            } +    };  }  | 
