diff options
author | Patrick Venture <venture@google.com> | 2019-03-26 11:12:39 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-03-28 11:05:25 -0700 |
commit | d847f50827e6818ba257a119b4595355873bf34b (patch) | |
tree | 3a322f4d8d2cddfe8adff743e909ddb7d0f94f0e /argument.hpp | |
parent | 349a33c1b859636fea78fb746c1984454cdc4cee (diff) | |
download | ipmi-fru-parser-d847f50827e6818ba257a119b4595355873bf34b.tar.gz ipmi-fru-parser-d847f50827e6818ba257a119b4595355873bf34b.zip |
transition to cli11 instead of custom arg parser
Transition to use cli11 for argument parsing instead of a custom
argument parser.
Tested: Not tested on hardware.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I9c516c8c2d76e35c6c31592f96e8f281e9d47ad6
Diffstat (limited to 'argument.hpp')
-rw-r--r-- | argument.hpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/argument.hpp b/argument.hpp deleted file mode 100644 index 849ccb5..0000000 --- a/argument.hpp +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef __ARGUMENT_H -#define __ARGUMENT_H -#include <getopt.h> - -#include <map> -#include <string> -class ArgumentParser -{ - public: - ArgumentParser(int argc, char** argv); - const std::string& operator[](const std::string& opt); - - static void usage(char** argv); - - static const std::string true_string; - static const std::string empty_string; - - private: - std::map<const std::string, std::string> arguments; - - static const option options[]; - static const char* optionstr; - - private: - ArgumentParser(){}; -}; - -#endif |