summaryrefslogtreecommitdiff
path: root/src/include/argparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/argparser.h')
-rw-r--r--src/include/argparser.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/include/argparser.h b/src/include/argparser.h
index 6106974..ba7838d 100644
--- a/src/include/argparser.h
+++ b/src/include/argparser.h
@@ -18,8 +18,7 @@ namespace Binc {
bool o;
std::string desc;
- inline ArgOpts(const std::string &chr, bool boolean, bool optional,
- const std::string &descr)
+ inline ArgOpts(const std::string &chr, bool boolean, bool optional, const std::string &descr)
{
c = chr;
b = boolean;
@@ -37,12 +36,10 @@ namespace Binc {
int argc(void) const;
- const std::string operator [](const std::string &arg) const;
+ const std::string operator[](const std::string &arg) const;
- void addOptional(const std::string &arg, const std::string &desc,
- bool boolean);
- void addRequired(const std::string &arg, const std::string &desc,
- bool boolean);
+ void addOptional(const std::string &arg, const std::string &desc, bool boolean);
+ void addRequired(const std::string &arg, const std::string &desc, bool boolean);
bool hasArg(const std::string &arg) const;
std::string usageString(void) const;
@@ -52,8 +49,7 @@ namespace Binc {
const std::vector<std::string> &getUnqualifiedArgs() const;
private:
- void registerArg(const std::string &arg, const std::string &desc,
- bool boolean, bool optional);
+ void registerArg(const std::string &arg, const std::string &desc, bool boolean, bool optional);
std::string errString;
std::map<std::string, ArgOpts> reg;