Commit 0bd00a44 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

* src/task/task_register.hh (parse_args): Do not search beyond

        map's end.
parent fc7eba2e
2003-07-29 Benot Perrot <benoit@lrde.epita.fr>
* src/task/task_register.hh (parse_args): Do not search beyond
map's end.
2003-07-28 Benot Perrot <benoit@lrde.epita.fr>
* NEWS: Describe main version changes.
......
......@@ -131,7 +131,8 @@ namespace task
<< arg << "'" << std::endl;
continue;
}
if ((++nit)->first.find(arg) == 0)
++nit;
if (nit != _tasks.end() && nit->first.find(arg) == 0)
{
std::cerr << program_name << ": ambiguous option `"
<< arg << "'" << std::endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment