sk89q/skmclauncher — pull request #50 by masonsbro (2013-06-12 00:12:26+00:00)
Title: Fix flag parsing to allow non-counting leftover args before flags

I went ahead and fixed the issue I was talking about. Now a command like the following:

skmclauncher.exe "" "" 127.0.0.1 -address 127.0.0.1 -launch

will put "", "", and 127.0.0.1 into leftOver and parse the -address value and the -launch flag.

In doing this, I removed the logic for forcing flags to be placed first (obviously) and the boolean "processingFlags". As far as I could tell, this had no purpose, but if it did, feel free to reject the pull request.

(This is my first pull request ever, for any project, so let me know if I'm doing it wrong!)