Fix a bug where the program name would be counted as an invalid argument.