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

jar's usage message output need some cleanup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • tools
    • None
    • jar
    • 9
    • b149

      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

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

              Created:
              Updated:
              Resolved: