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

    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

          People

            Unassigned Unassigned
            shrikant.dange1208@gmail.com Shrikant Dange
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: