mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-02 03:37:19 +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;
|
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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue