[RFC] job: Add optional {flags} parameter.

fixes #1574
I couldn't find an existing E-number for this, so :+1: (Vim seems to use "invalid arg" for flag errors)