betir
Class CommandLineUtil

java.lang.Object
  |
  +--betir.CommandLineUtil

public class CommandLineUtil
extends java.lang.Object


Constructor Summary
CommandLineUtil()
           
 
Method Summary
static java.lang.String LocateParameter(java.lang.String[] args, java.lang.String prefix, java.lang.String defaultValue)
          Searches command line arguments for an entry that starts with the prefix string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineUtil

public CommandLineUtil()
Method Detail

LocateParameter

public static java.lang.String LocateParameter(java.lang.String[] args,
                                               java.lang.String prefix,
                                               java.lang.String defaultValue)
Searches command line arguments for an entry that starts with the prefix string. If found the prefix is stripped and the remaining String is returned. If it is not, the default string is returned.
Parameters:
args - the command line arguments
prefix - the parameter to search for
Returns:
the value of the parameter, or defaultValue if it cannot be found