Fix "Invalid command line option" message - invalid arg index was used