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

[cli] CLI2 Group Parser skips arguments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • CLI-2.x
    • None
    • Operating System: All
      Platform: All

    • 32533

    Description

      The CLI2 group parser can skip an argument when you have more than one group
      in a set of arguments. This is caused when the shared iterator over arguments
      is passed to the GroupImpl.process method. The process method can pull more
      than one argument from the iterator when the argument belongs to another group
      but always does a single arguments.previous() on return.

      I have worked out a patch that will fix most cases but the real fix may be to
      process arguments in more than one passes. The first pass would burst
      arguments and associate them with their groups. The argument list then needs
      to be sorted by group/argument/ordinal and processed to set values, etc.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmorris@plumcreek.com David Morris
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: