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

CLI2 should support multiple property args on command line

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: CLI-2.x
    • Labels:
      None

      Description

      If I specify a command line like -Dsomekey=value1 -Xsomekey=value2, after parsing the value of somekey is overwritten as WritableCommandLine maintains a single set for all properties irrespective of switch.
      There should be a way of handling this case. CommandLine should probably return a set of all the switches from which we get properties.

      comments? I can submit a patch for this if its ok to make this change.

        Attachments

        1. patchCLI126.patch
          22 kB
          Brian Egge

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sanjay.dahiya Sanjay Dahiya
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: