mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 02:17:21 +02:00
CLI
- The ::insert method is not needed, and is removed.
This commit is contained in:
parent
529217cf75
commit
645d728f0f
2 changed files with 2 additions and 15 deletions
14
src/CLI.cpp
14
src/CLI.cpp
|
@ -279,18 +279,6 @@ void CLI::add (const std::string& arg)
|
||||||
analyze ();
|
analyze ();
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Capture a single argument, after BINARY.
|
|
||||||
void CLI::insert (const std::string& arg)
|
|
||||||
{
|
|
||||||
// Clean the ID/UUID lists, because they will be rebuilt.
|
|
||||||
_id_ranges.clear ();
|
|
||||||
_uuid_list.clear ();
|
|
||||||
|
|
||||||
addArg (arg, true);
|
|
||||||
analyze ();
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Intended to be called after ::initialize() and ::add(), to perform the final
|
// Intended to be called after ::initialize() and ::add(), to perform the final
|
||||||
// analysis. Analysis is also performed directly after the above, because there
|
// analysis. Analysis is also performed directly after the above, because there
|
||||||
|
@ -598,7 +586,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, bool first /* = false */)
|
void CLI::addArg (const std::string& arg)
|
||||||
{
|
{
|
||||||
// Do not lex these constructs.
|
// Do not lex these constructs.
|
||||||
if (isTerminator (arg) || // --
|
if (isTerminator (arg) || // --
|
||||||
|
|
|
@ -70,7 +70,6 @@ public:
|
||||||
void entity (const std::string&, const std::string&);
|
void entity (const std::string&, const std::string&);
|
||||||
void initialize (int, const char**);
|
void initialize (int, const char**);
|
||||||
void add (const std::string&);
|
void add (const std::string&);
|
||||||
void insert (const std::string&);
|
|
||||||
void analyze (bool parse = true);
|
void analyze (bool parse = true);
|
||||||
void applyOverrides ();
|
void applyOverrides ();
|
||||||
void getOverride (std::string&, File&);
|
void getOverride (std::string&, File&);
|
||||||
|
@ -85,7 +84,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&, bool first = false);
|
void addArg (const std::string&);
|
||||||
void aliasExpansion ();
|
void aliasExpansion ();
|
||||||
void findOverrides ();
|
void findOverrides ();
|
||||||
void categorize ();
|
void categorize ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue