What I'd prefer is that there should be a call that takes the command-line args and returns a Request.  This could be used here, or by any other framework (Eclipse, maven) that wants to use the same command-line processing.