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

[cli] Missing arguments in HelpFormatter.renderOptions(..)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: CLI-1.x
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      19383

      Description

      The method renderOptions(....) ignores Options with no shortOpt.

      Possible Solution:
      replace
      List optList = options.helpOptions();
      Collections.sort( optList, new StringBufferComparator() );

      with
      Collection optList = options.getOptions();

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sascha.spiekermann@gmx.net Sascha Spiekermann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: