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)
======================================================================
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)
======================================================================
- relates to
-
JDK-6276512 (process) Runtime.exec(cmd[]) ignores quotes around arguments (win)
- Closed
-
JDK-6468220 (process) Runtime.exec(String[]) does not pass command line arguments correctly (win)
- Closed