Improve command line argument parsing. Disallow trailing parameters that would not be parsed