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

CLI Option reports arguments incorrectly on toString()

    Details

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

      Description

      The Option class contains some logic around the "hasArg" boolean that seems to be cruft and no longer works correctly. There is no need for this boolean anymore and its only usage could be replaced with hasArg() / hasArgs() calls.

        Attachments

        1. option.patch
          1 kB
          Henning Schmiedehausen
        2. CLI-141-clean.patch
          2 kB
          Bjorn Townsend

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              henning Henning Schmiedehausen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: