Pass options and args to tasks

When both @cmdopts and @consume_nargs are used, the options *before* the
args are parsed by the task's parser and given to it.