Luky Library - 4.1.1 (20061117-1148)

luky.util
Class ParseOptions

java.lang.Object
  extended by luky.util.ParseOptions

public class ParseOptions
extends Object

This Class is a simple wrapper to extract commandline properties

Version:
1.00
Author:
Chris Lukassen
 

Field Summary
 String[] remArgs
          variables
 
Constructor Summary
ParseOptions(String[] args, String[] options, String[] values, String usage)
          default constructor
Parses options and sets values according to options. options[] is an array of options and values[] is the returned array of string values.
 
Method Summary
 void usage_error()
          Usage error, Print usage error and exit
 void usage_error(String value)
          Usage error, Print usage error and exit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remArgs

public String[] remArgs
variables

Constructor Detail

ParseOptions

public ParseOptions(String[] args,
                    String[] options,
                    String[] values,
                    String usage)
default constructor
Parses options and sets values according to options. options[] is an array of options and values[] is the returned array of string values.
If options[i] has no associated string, set values[i] = "None" before calling this. The usage string must be supplied by the user.

Method Detail

usage_error

public void usage_error()
Usage error, Print usage error and exit


usage_error

public void usage_error(String value)
Usage error, Print usage error and exit


Luky Library - 4.1.1 (20061117-1148)