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

[cli] support validation for one/many values

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 2.0
    • Component/s: CLI-2.x
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      36187

      Description

      currently, if i supply the same option twice, no error is issued. it would be
      nice if when creating the Option object, i could specify if it accepts multiple
      values, and if not, a parsing exception would be thrown.

        Attachments

        1. BugCLI80Test.java
          1 kB
          Andrew Shirley

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ittayd@qlusters.com Ittay Dror
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: