You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Shrikant Dange (JIRA)" <ji...@apache.org> on 2019/07/28 19:48:00 UTC

[jira] [Created] (CLI-296) CommandLineParser does not throw unrecognized exception if option starts with a prefix substring

Shrikant Dange created CLI-296:
----------------------------------

             Summary: 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


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)