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

Allow caller to define ordering of options in help message

    Details

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

        Attachments

        1. CLI-155.patch
          5 kB
          Henri Yandell

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: