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

Help formatter does not display correct message for options which take single or multilple values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2
    • None
    • Help formatter
    • None

    Description

      options.addOption(OptionBuilder
      .withLongOpt("destination")
      .hasArg()
      .withDescription("Destination output directory")
      .create("d"));

      options.addOption(OptionBuilder.withLongOpt("javasource")
      .hasArgs()
      .withValueSeparator(' ')
      .withDescription("Java Source File Location")
      .create("js"))

      this gives
      d,-destination Destination output directory
      js,-javasource <arg> Java Source File Location

      but id expect <arg> for destination and multiple args for javasource

      Attachments

        Activity

          People

            Unassigned Unassigned
            jasons2000 Jason Shattu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: