diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-10 22:42:27 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-10 22:42:27 +0200 |
commit | cc8b0c0a7061a0b674077d58c28cd1ba4d3eafc1 (patch) | |
tree | d9d6a764d4da857b5e9742f0fb8c9b526df0d766 | |
parent | e96321af67185460f917846b6f55f96d108c6ba8 (diff) |
turn ArgOpts into an aggregate
-rw-r--r-- | src/argparser.cc | 2 | ||||
-rw-r--r-- | src/include/argparser.h | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/argparser.cc b/src/argparser.cc index 621bc5c..59cdced 100644 --- a/src/argparser.cc +++ b/src/argparser.cc @@ -237,7 +237,7 @@ void CommandLineArgs::registerArg(const string &arg, name = name.substr(2); } - reg.insert(make_pair(name, ArgOpts(shorts, boolean, optional, desc))); + reg.insert(make_pair(name, ArgOpts{shorts, boolean, optional, desc})); } bool CommandLineArgs::hasArg(const string &arg) const diff --git a/src/include/argparser.h b/src/include/argparser.h index 7aedf17..8cbced0 100644 --- a/src/include/argparser.h +++ b/src/include/argparser.h @@ -19,13 +19,6 @@ namespace Binc { bool b; bool o; std::string desc; - - ArgOpts(const std::string &chr, bool boolean, bool optional, const std::string &descr) - : c(chr) - , b(boolean) - , o(optional) - , desc(descr) - {} }; class CommandLineArgs { |