Commons CLI
  1. Commons CLI
  2. CLI-131

Options class returns options in random order

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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.

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

        Issue Links

          Activity

          Brian Egge created issue -
          Brian Egge made changes -
          Field Original Value New Value
          Attachment bug131.patch [ 12358917 ]
          Brian Egge made changes -
          Link This issue is cloned as CLI-132 [ CLI-132 ]
          Brian Egge made changes -
          Attachment bug131.patch [ 12358931 ]
          Brian Egge made changes -
          Attachment bug131.patch [ 12358917 ]
          Brian Egge made changes -
          Attachment bug131b.patch [ 12359010 ]
          Henri Yandell made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          Mark Thomas made changes -
          Workflow jira [ 12405512 ] Default workflow, editable Closed status [ 12601444 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development