Warn on invalid command options
Merge pull request #2482 from trabus/command-options-validation

Add validation for command options