CLI: Removed unused and eclipsed argument to ::addArg.

This commit is contained in:
Paul Beckingham 2015-06-07 10:02:00 -04:00
parent 7f763aacb9
commit 3dc7baa4ed
2 changed files with 4 additions and 2 deletions

View file

@ -554,6 +554,8 @@ const std::vector <std::string> 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 <std::string> 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);

View file

@ -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 ();