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

Allow caller to define ordering of options in help message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2
    • Help formatter
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: