Split args into .flags and .task

BUG=
R=klm@google.com

Review URL: https://codereview.appspot.com/72010044