optparse short options will match complete options
In short, if I define an option like
"-F", "--irs [OCTAL]",
-i will match this option, although the short version is defined as
In long, this can be quite troublesome:
See the provided example
and change or remove the
"-i", "--inplace [EXTENSION]" option for something else than
Now, the -i will still match, but the other option
"-F", "--irs [OCTAL]"!
In a more complete stack this resulted in a hard to find error. Also, to fix this (and raise the required error) you need to check the ARGV directly which renders optparse a bit less useful.