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

Options class returns options in random order

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0, 1.1
    • 1.1
    • CLI-1.x
    • 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. bug131b.patch
          1 kB
          Brian Egge
        2. bug131.patch
          3 kB
          Brian Egge

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: