mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Arguments
- Converted from Arguments to A3.
This commit is contained in:
parent
5b0197300f
commit
2f5bb14d33
1 changed files with 3 additions and 3 deletions
|
@ -53,14 +53,14 @@ int CmdImport::execute (std::string& output)
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
// Use the description as a file name.
|
// Use the description as a file name.
|
||||||
Arguments words = context.args.extract_simple_words ();
|
std::vector <std::string> words = context.a3.extract_words ();
|
||||||
if (! words.size ())
|
if (! words.size ())
|
||||||
throw std::string ("You must specify a file to import.");
|
throw std::string ("You must specify a file to import.");
|
||||||
|
|
||||||
std::vector <Triple>::iterator word;
|
std::vector <std::string>::iterator word;
|
||||||
for (word = words.begin (); word != words.end (); ++word)
|
for (word = words.begin (); word != words.end (); ++word)
|
||||||
{
|
{
|
||||||
std::string file = word->_first;
|
std::string file = *word;
|
||||||
std::cout << "Importing '" << file << "'\n";
|
std::cout << "Importing '" << file << "'\n";
|
||||||
|
|
||||||
std::string tmpfile = "";
|
std::string tmpfile = "";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue