mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Arguments
- Converted from Arguments to A3.
This commit is contained in:
parent
67fb1e9be4
commit
852484beb2
1 changed files with 4 additions and 4 deletions
|
@ -53,10 +53,10 @@ int CmdColor::execute (std::string& output)
|
||||||
|
|
||||||
// Get the non-attribute, non-fancy command line arguments.
|
// Get the non-attribute, non-fancy command line arguments.
|
||||||
bool legend = false;
|
bool legend = false;
|
||||||
Arguments words = context.args.extract_simple_words ();
|
std::vector <std::string> words = context.a3.extract_words ();
|
||||||
std::vector <Triple>::iterator word;
|
std::vector <std::string>::iterator word;
|
||||||
for (word = words.begin (); word != words.end (); ++word)
|
for (word = words.begin (); word != words.end (); ++word)
|
||||||
if (closeEnough ("legend", word->_first))
|
if (closeEnough ("legend", *word))
|
||||||
legend = true;
|
legend = true;
|
||||||
|
|
||||||
std::stringstream out;
|
std::stringstream out;
|
||||||
|
@ -113,7 +113,7 @@ int CmdColor::execute (std::string& output)
|
||||||
if (word != words.begin ())
|
if (word != words.begin ())
|
||||||
swatch += " ";
|
swatch += " ";
|
||||||
|
|
||||||
swatch += word->_first;
|
swatch += *word;
|
||||||
}
|
}
|
||||||
|
|
||||||
Color sample (swatch);
|
Color sample (swatch);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue