CLI: Removed unused and eclipsed argument to ::addArg.
This commit is contained in:
@@ -554,6 +554,8 @@ const std::vector <std::string> CLI::getWords ()
|
|||||||
// only.
|
// only.
|
||||||
analyze (false);
|
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;
|
std::vector <std::string> words;
|
||||||
for (auto& a : _args)
|
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.
|
// be lexed from those that need to be left alone.
|
||||||
//
|
//
|
||||||
// Either the arg is appended to _original_args intact, or the lexemes are.
|
// 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);
|
std::string raw = trim (arg);
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ public:
|
|||||||
const std::string dump (const std::string& title = "CLI Parser") const;
|
const std::string dump (const std::string& title = "CLI Parser") const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void addArg (const std::string&, Lexer::Type type = Lexer::Type::word);
|
void addArg (const std::string&);
|
||||||
void aliasExpansion ();
|
void aliasExpansion ();
|
||||||
void findOverrides ();
|
void findOverrides ();
|
||||||
void categorize ();
|
void categorize ();
|
||||||
|
|||||||
Reference in New Issue
Block a user