Improve options parsing and passing config params from command line in submit command.
Merge pull request #4158 from AndresTanasijczuk/validate_config

Improve opts parsing and passing config params from command line in submit