From 3dc7baa4edd1046749de86cc3f917ce830fb1765 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 7 Jun 2015 10:02:00 -0400 Subject: [PATCH] CLI: Removed unused and eclipsed argument to ::addArg. --- src/CLI.cpp | 4 +++- src/CLI.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CLI.cpp b/src/CLI.cpp index 28b0541b9..455223858 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -554,6 +554,8 @@ const std::vector CLI::getWords () // only. analyze (false); + // TODO Args that should be extracted as words, should be tagged accordingly, + // thereby removing the need for a hard-coded exclusion list. std::vector words; for (auto& a : _args) { @@ -662,7 +664,7 @@ const std::string CLI::dump (const std::string& title /* = "CLI Parser" */) cons // be lexed from those that need to be left alone. // // Either the arg is appended to _original_args intact, or the lexemes are. -void CLI::addArg (const std::string& arg, Lexer::Type type /* = Lexer::Type::word */) +void CLI::addArg (const std::string& arg) { std::string raw = trim (arg); diff --git a/src/CLI.h b/src/CLI.h index 11454f595..b388c6fda 100644 --- a/src/CLI.h +++ b/src/CLI.h @@ -89,7 +89,7 @@ public: const std::string dump (const std::string& title = "CLI Parser") const; private: - void addArg (const std::string&, Lexer::Type type = Lexer::Type::word); + void addArg (const std::string&); void aliasExpansion (); void findOverrides (); void categorize ();