Fixes option parsing for tasks.