Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8170952

jar's usage message output need some cleanup

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
      jar
    • Introduced In Version:
      9
    • Resolved In Build:
      b149

      Description

      There are some inconsistent and inappropriate jar usage msgs after the gnu-command-line-style support was add into jdk9 jar implementation. For example

      jar tc foo.jar
      ->
      jar: You must specify one of -ctxui options.
      Try `jar --help' for more information.

      jar --list --create foo.jar
      ->
      You may not specify more than one '-cuxti' options
      jar: You must specify one of -ctxui options.
      Try `jar --help' for more information.

      expected output:

      jar tc foo.jar / jar --list --create foo.jar
      ->
      You may not specify more than one '-cuxid' options
      Try 'jar --help' for more information

        Attachments

          Activity

            People

            • Assignee:
              sherman Xueming Shen
              Reporter:
              sherman Xueming Shen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: