mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
CLI2: Modified ::getWords to ignore either raw or canonicalized command
This commit is contained in:
parent
ba63472068
commit
bb283de1dd
1 changed files with 2 additions and 0 deletions
|
@ -684,12 +684,14 @@ const std::vector <std::string> CLI2::getWords ()
|
||||||
{
|
{
|
||||||
auto binary = getBinary ();
|
auto binary = getBinary ();
|
||||||
auto command = getCommand ();
|
auto command = getCommand ();
|
||||||
|
auto commandRaw = getCommandRaw ();
|
||||||
|
|
||||||
std::vector <std::string> words;
|
std::vector <std::string> words;
|
||||||
for (auto& a : _original_args)
|
for (auto& a : _original_args)
|
||||||
{
|
{
|
||||||
if (a != binary &&
|
if (a != binary &&
|
||||||
a != command &&
|
a != command &&
|
||||||
|
a != commandRaw &&
|
||||||
a != "--" &&
|
a != "--" &&
|
||||||
a.find ("rc:") != 0 &&
|
a.find ("rc:") != 0 &&
|
||||||
a.find ("rc.") != 0)
|
a.find ("rc.") != 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue