CLI
- The ::insert method is not needed, and is removed.
This commit is contained in:
14
src/CLI.cpp
14
src/CLI.cpp
@@ -279,18 +279,6 @@ void CLI::add (const std::string& arg)
|
||||
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
|
||||
// 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.
|
||||
//
|
||||
// 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.
|
||||
if (isTerminator (arg) || // --
|
||||
|
||||
@@ -70,7 +70,6 @@ public:
|
||||
void entity (const std::string&, const std::string&);
|
||||
void initialize (int, const char**);
|
||||
void add (const std::string&);
|
||||
void insert (const std::string&);
|
||||
void analyze (bool parse = true);
|
||||
void applyOverrides ();
|
||||
void getOverride (std::string&, File&);
|
||||
@@ -85,7 +84,7 @@ public:
|
||||
const std::string dump (const std::string& title = "CLI Parser") const;
|
||||
|
||||
private:
|
||||
void addArg (const std::string&, bool first = false);
|
||||
void addArg (const std::string&);
|
||||
void aliasExpansion ();
|
||||
void findOverrides ();
|
||||
void categorize ();
|
||||
|
||||
Reference in New Issue
Block a user