diff --git a/src/commands/CmdColor.cpp b/src/commands/CmdColor.cpp index 0a3d1e0de..4ddcd495c 100644 --- a/src/commands/CmdColor.cpp +++ b/src/commands/CmdColor.cpp @@ -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 ::iterator word; + std::vector words = context.a3.extract_words (); + std::vector ::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);