Commons CLI
  1. Commons CLI
  2. CLI-155

Allow caller to define ordering of options in help message

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: Help formatter
    • Labels:
      None

      Description

      It would be nice if the caller could define their own ordering of command-line options, as an alternative to alphabetical ordering. I see there's an OptionComparator class within HelpFormatter. Maybe you could add a setOptionComparator(Comparator comp) method.

      1. CLI-155.patch
        5 kB
        Henri Yandell

        Activity

        Mark Thomas made changes -
        Workflow jira [ 12430891 ] Default workflow, editable Closed status [ 12601470 ]
        Emmanuel Bourg made changes -
        Component/s CLI-1.x [ 12311672 ]
        Component/s Help formatter [ 12312373 ]
        Henri Yandell made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 1.2 [ 12312674 ]
        Resolution Fixed [ 1 ]
        Henri Yandell made changes -
        Field Original Value New Value
        Attachment CLI-155.patch [ 12381921 ]
        Mike DeLaurentis created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Mike DeLaurentis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development