shared
Class CmdLine

java.lang.Object
  |
  +--shared.CmdLine

public class CmdLine
extends java.lang.Object

This class contains standard command-line processing for MLC++ utilities.


Constructor Summary
CmdLine()
          Creates a new instance of CmdLine
 
Method Summary
static int process_mlc_cmdline(java.lang.String[] args)
          Process all options on the command line for a standard MLC++ utility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdLine

public CmdLine()
Creates a new instance of CmdLine
Method Detail

process_mlc_cmdline

public static int process_mlc_cmdline(java.lang.String[] args)
Process all options on the command line for a standard MLC++ utility. Th options supported and their semantics are as follows:

-o filename ----------- reads a filename containing lines of the form OPTION=VALUE Each option/value pair should be on a separate line. All option/value pairs are added to the list of available options.

-O OPTION=VALUE --------------- Sets a specific option to a specific value. -s -- Suppress the use of the enviornment to fill in the values of unset options.

The return value from this function is the index in args of the first nonoption argument.

Comments:
process_mlc_cmdline processes all options on the command line and will produce an error if it finds an unsupported option.
This function resets the values of a few global variables which are set by so- called "super-nuisance" options at startup time. The values are reset using values from the option server.

Parameters:
args - String array containing command line arguments.
Returns:
The index of the first non-option argument in the String array of arguments.