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

CommandLine.getOptionValue() only returns first word of string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.2
    • None
    • CLI-1.x
    • None
    • Java 1.7, Mac

    Description

      I have an option that takes an argument. On the command line, I use:
      -someOption "A string"

      getOptionValue() should return "A String", but it returns "A".

      Attachments

        Activity

          People

            Unassigned Unassigned
            treaves Timothy Reaves
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: