Makes flags able to be given to program in any order. First non-flag is assumed to be the input argument.