Allow for flags being passed in after arguments

For the Cloud Foundry CLI we need the ability to have flags being passed after other arguments, for example:

```
cf push app --option some-value
```

This commit should allow for both ways to work, but not the mix of the two: flags before and after other arguments won't work.