When passing an additional option to a script that doesn't know about this option, I get an error message about "missing required options", listing all required options that follow the unkown option.
The following example code reproduces the issue:
When invoked with an additional option, '-c C' for example, it produces the following, misleading output:
The list of missing options varies depending on where "-c C" is inserted. There's no error when it's the last one.
I would expect it to either ignore the addtional option in all cases or emit an error message about an unknown option. But in no case should it error out because of missing required options when there are none missing.