[
https://issues.apache.org/jira/browse/CLI-296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16894789#comment-16894789
]
Emmanuel Bourg commented on CLI-296:
------------------------------------
Partial option matching is actually a feature of Commons CLI. If the partial
option is unambiguous then it's automatically matched.
> CommandLineParser does not throw unrecognized exception if option starts with
> a prefix substring
> ------------------------------------------------------------------------------------------------
>
> Key: CLI-296
> URL: https://issues.apache.org/jira/browse/CLI-296
> Project: Commons CLI
> Issue Type: Bug
> Components: CLI-1.x
> Affects Versions: 1.4
> Reporter: Shrikant Dange
> Priority: Major
>
> Suppose the required option is -operation (short and long) for which required
> is set to true.
> It does not throw unrecognized option exception for following inputs (which
> it should throw)
> -op, -oper, operation3274y37
> But throws unrecognized option exception for following inputs
> -oper5, -o, -operatnn
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)