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

Options class returns options in random order

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0, 1.1
    • Fix Version/s: 1.1
    • Component/s: CLI-1.x
    • Labels:
      None

      Description

      The help formatter auto usage returns the options in a somewhat random order. This is because the options are inserted in a HashMap, and then a copy of the collection is returned with the getOptions() method.

      The getOptions method should return the options in the order they were added, or in a sorted order.

        Attachments

        1. bug131.patch
          3 kB
          Brian Egge
        2. bug131b.patch
          1 kB
          Brian Egge

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                brianegge Brian Egge
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: