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

unknown option error can be a little more helpful

XMLWordPrintable

    • b32
    • generic
    • generic
    • Not verified

      javap used to give invalid flag message and print usage screen.
      Now it just does this:
      Error: unknown option: -Z

      Javac give invalid flag and offer minimal help screen:
      javac: invalid flag: -Z
      Usage: javac <options> <source files>
      use -help for a list of possible options

      Maybe the javac behaviour is a good compromise betweent the two.

            jjg Jonathan Gibbons
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: