Get the order of command line arguments correct