TW-1641: 'edit' should process or reject <mods> arguments

- Thanks to Daniel Shahaf.
This commit is contained in:
Paul Beckingham 2015-07-25 09:39:13 -04:00
parent 7aa101de58
commit 99e0953489
12 changed files with 19 additions and 0 deletions

View file

@ -67,6 +67,9 @@ int CmdEdit::execute (std::string& output)
std::vector <Task> filtered;
filter.subset (filtered);
if (filter.hasModifications ())
throw std::string (STRING_ERROR_NO_MODS);
// Find number of matching tasks.
for (auto& task : filtered)
{