Enhancement - parse sequence like 1,3,5-10 for IDs

- Now parses sequences as well as IDs.
- Sequences implemented for the info report.
This commit is contained in:
Paul Beckingham
2009-05-05 01:59:07 -04:00
parent d135dc2337
commit fb674a5626
5 changed files with 52 additions and 37 deletions

View File

@@ -487,17 +487,9 @@ void parse (
std::vector <int> sequence;
// An id is the first argument found that contains all digits.
if (lowerCase (command) != "add" &&
/*
task.getSequenceCount () == 0 &&
*/
if (lowerCase (command) != "add" && // "add" doesn't require an ID
validSequence (arg, sequence))
{
/*
for (?)
task.addSequence (?)
*/
std::cout << "# look like a sequence" << std::endl;
foreach (id, sequence)
task.addId (*id);
}