edu.stanford.slac.aida.tool.command
Class AidaCommandLine

java.lang.Object
  extended by edu.stanford.slac.aida.tool.command.AidaCommandLine

public class AidaCommandLine
extends java.lang.Object


Constructor Summary
AidaCommandLine(java.lang.String[] args)
           
 
Method Summary
 int argCount()
           
 java.lang.String getArg(int idx)
          Returns current args list.
 java.lang.String getOption(java.lang.String name)
          Returns value associated with specified option name.
 boolean isOptionSet(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AidaCommandLine

public AidaCommandLine(java.lang.String[] args)
                throws edu.stanford.slac.except.BadArguments
Throws:
edu.stanford.slac.except.BadArguments
Method Detail

getOption

public java.lang.String getOption(java.lang.String name)
Returns value associated with specified option name. Options that were specified without values return an empty string. If the requested option was not parsed from the command line, then a null is returned.

Parameters:
name - the name of the option to find

isOptionSet

public boolean isOptionSet(java.lang.String name)

getArg

public java.lang.String getArg(int idx)
Returns current args list. May be invalidated by subsequent calls to methods that modify the argument list.


argCount

public int argCount()