jar's usage message output need some cleanup

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: