mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
CLI: Removed unused and eclipsed argument to ::addArg.
This commit is contained in:
parent
7f763aacb9
commit
3dc7baa4ed
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue