Fix flag parsing to allow non-counting left over args before flags