mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Arguments
- Converted from Arguments to A3.
This commit is contained in:
parent
852484beb2
commit
5b0197300f
1 changed files with 3 additions and 3 deletions
|
@ -51,7 +51,7 @@ int CmdConfig::execute (std::string& output)
|
|||
std::stringstream out;
|
||||
|
||||
// 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:
|
||||
// task config name value # set name to value
|
||||
|
@ -59,7 +59,7 @@ int CmdConfig::execute (std::string& output)
|
|||
// task config name # remove name
|
||||
if (words.size ())
|
||||
{
|
||||
std::string name = words[0]._first;
|
||||
std::string name = words[0];
|
||||
std::string value = "";
|
||||
|
||||
if (words.size () > 1)
|
||||
|
@ -69,7 +69,7 @@ int CmdConfig::execute (std::string& output)
|
|||
if (i > 1)
|
||||
value += " ";
|
||||
|
||||
value += words[i]._first;
|
||||
value += words[i];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue