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

(process) Need access to unparsed command line arguments

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.1.6
    • core-libs
    • generic
    • generic

      Name: gb36485 Date: 04/16/99


      Currently the Java run-time returns an array of strings to a
      Java application no matter what the user enters on the command
      line.

      This it not desired. I want to be able to give my users proper
      feedback about errors they have made, so they understand what
      they did wrong.

      I know command-line arguments are not 100% pure, and I will
      ensure that I do not rely on them for critical parameters. This
      applies to GUI applications. There are a lot of platforms which
      do have a command line interface and I want to write programs for
      this interface too. One requirement for this is that I can
      reliably and consistently parse the command line.

      I would prefer a static method being added to the System class
      Which returns the command line. This method would return the
      UNPARSED string entered on the command line AFTER the name
      of the class. The whitespace between the first non-whitespace
      character and the class name MAY be removed.

      The application can not found out which VM and which VM
      parameters were used to start it.
      (Review ID: 57009)
      ======================================================================

            martin Martin Buchholz
            gbrachasunw Gilad Bracha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: