Arguments

- Converted from Arguments to A3.
This commit is contained in:
Paul Beckingham 2011-07-24 16:55:32 -04:00
parent 852484beb2
commit 5b0197300f

View file

@ -51,7 +51,7 @@ int CmdConfig::execute (std::string& output)
std::stringstream out; std::stringstream out;
// Get the non-attribute, non-fancy command line arguments. // Get the non-attribute, non-fancy command line arguments.
Arguments words = context.args.extract_simple_words (); std::vector <std::string> words = context.a3.extract_words ();
// Support: // Support:
// task config name value # set name to value // task config name value # set name to value
@ -59,7 +59,7 @@ int CmdConfig::execute (std::string& output)
// task config name # remove name // task config name # remove name
if (words.size ()) if (words.size ())
{ {
std::string name = words[0]._first; std::string name = words[0];
std::string value = ""; std::string value = "";
if (words.size () > 1) if (words.size () > 1)
@ -69,7 +69,7 @@ int CmdConfig::execute (std::string& output)
if (i > 1) if (i > 1)
value += " "; value += " ";
value += words[i]._first; value += words[i];
} }
} }