Description
When using DefaultParser, any options can be accessed using either '-' or '--' as a prefix and so regardless whether they have been defined as short or long.
the problem is in handleToken:
237 else if (token.startsWith("--"))
238
241 else if (token.startsWith("-") && !"-".equals(token))
242
Some logic should be added so that if an option has been defined as short (e.g. -h), if --h is used, for instance, in the command line, an exception should be raised. Similarly for long options which are being called using only '-' instead of '--' as a prefix, an exception should also be fired.