Improve options parsing and passing config params from command line in submit command.