mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 11:27:19 +02:00
CLI
- Implemented ::isTerminator.
This commit is contained in:
parent
1136b8fcdc
commit
d5a4f23937
2 changed files with 10 additions and 2 deletions
11
src/CLI.cpp
11
src/CLI.cpp
|
@ -480,8 +480,9 @@ const std::string CLI::dump () const
|
||||||
// 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)
|
void CLI::addArg (const std::string& arg)
|
||||||
{
|
{
|
||||||
// Do not lex RC overrides, UUIDs, patterns, substitutions.
|
// Do not lex RC overrides, IDs, UUIDs, patterns, substitutions.
|
||||||
if (isRCOverride (arg) ||
|
if (isTerminator (arg) ||
|
||||||
|
isRCOverride (arg) ||
|
||||||
isConfigOverride (arg) ||
|
isConfigOverride (arg) ||
|
||||||
isUUIDList (arg) ||
|
isUUIDList (arg) ||
|
||||||
isUUID (arg) ||
|
isUUID (arg) ||
|
||||||
|
@ -1685,6 +1686,12 @@ void CLI::decomposeModSubstitutions ()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
bool CLI::isTerminator (const std::string& raw) const
|
||||||
|
{
|
||||||
|
return (raw == "--");
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
bool CLI::isRCOverride (const std::string& raw) const
|
bool CLI::isRCOverride (const std::string& raw) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -98,6 +98,7 @@ private:
|
||||||
void decomposeModTags ();
|
void decomposeModTags ();
|
||||||
void decomposeModSubstitutions ();
|
void decomposeModSubstitutions ();
|
||||||
|
|
||||||
|
bool isTerminator (const std::string&) const;
|
||||||
bool isRCOverride (const std::string&) const;
|
bool isRCOverride (const std::string&) const;
|
||||||
bool isConfigOverride (const std::string&) const;
|
bool isConfigOverride (const std::string&) const;
|
||||||
bool isUUIDList (const std::string&) const;
|
bool isUUIDList (const std::string&) const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue