Arguments

- Converted from Arguments to A3.
This commit is contained in:
Paul Beckingham 2011-07-24 16:50:58 -04:00
parent 67fb1e9be4
commit 852484beb2

View file

@ -53,10 +53,10 @@ int CmdColor::execute (std::string& output)
// Get the non-attribute, non-fancy command line arguments.
bool legend = false;
Arguments words = context.args.extract_simple_words ();
std::vector <Triple>::iterator word;
std::vector <std::string> words = context.a3.extract_words ();
std::vector <std::string>::iterator word;
for (word = words.begin (); word != words.end (); ++word)
if (closeEnough ("legend", word->_first))
if (closeEnough ("legend", *word))
legend = true;
std::stringstream out;
@ -113,7 +113,7 @@ int CmdColor::execute (std::string& output)
if (word != words.begin ())
swatch += " ";
swatch += word->_first;
swatch += *word;
}
Color sample (swatch);