Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-296

CommandLineParser does not throw unrecognized exception if option starts with a prefix substring

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4
    • None
    • CLI-1.x
    • None

    Description

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            shrikant.dange1208@gmail.com Shrikant Dange

            Dates

              Created:
              Updated:

              Slack

                Issue deployment