aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
+ }
+ };
}