Arguments
- Converted from Arguments to A3.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user