mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 11:27:19 +02:00
CLI
- Fixed bug where PSEUDO args did not have the correct 'raw' or 'value' attribute.
This commit is contained in:
parent
fa890f9961
commit
5387ab1dcb
1 changed files with 3 additions and 1 deletions
|
@ -214,6 +214,7 @@ const std::string A::dump () const
|
||||||
else if (*tag == "MODIFICATION") tags += "\033[1;37;43m" + *tag + "\033[0m";
|
else if (*tag == "MODIFICATION") tags += "\033[1;37;43m" + *tag + "\033[0m";
|
||||||
else if (*tag == "RC") tags += "\033[1;37;41m" + *tag + "\033[0m";
|
else if (*tag == "RC") tags += "\033[1;37;41m" + *tag + "\033[0m";
|
||||||
else if (*tag == "CONFIG") tags += "\033[1;37;101m" + *tag + "\033[0m";
|
else if (*tag == "CONFIG") tags += "\033[1;37;101m" + *tag + "\033[0m";
|
||||||
|
else if (*tag == "PSEUDO") tags += "\033[1;37;45m" + *tag + "\033[0m";
|
||||||
else if (*tag == "?") tags += "\033[38;5;255;48;5;232m" + *tag + "\033[0m";
|
else if (*tag == "?") tags += "\033[38;5;255;48;5;232m" + *tag + "\033[0m";
|
||||||
else tags += "\033[32m" + *tag + "\033[0m";
|
else tags += "\033[32m" + *tag + "\033[0m";
|
||||||
}
|
}
|
||||||
|
@ -883,8 +884,9 @@ void CLI::desugarAttributes ()
|
||||||
|
|
||||||
else if (canonicalize (canonical, "pseudo", name))
|
else if (canonicalize (canonical, "pseudo", name))
|
||||||
{
|
{
|
||||||
A lhs ("argPseudo", name);
|
A lhs ("argPseudo", a->attribute ("raw"));
|
||||||
lhs.attribute ("name", canonical);
|
lhs.attribute ("name", canonical);
|
||||||
|
lhs.attribute ("value", value);
|
||||||
lhs.tag ("PSEUDO");
|
lhs.tag ("PSEUDO");
|
||||||
reconstructed.push_back (lhs);
|
reconstructed.push_back (lhs);
|
||||||
found = true;
|
found = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue