org.apache.geronimo.cli
Class BaseCLParser
java.lang.Object
org.apache.geronimo.cli.BaseCLParser
- All Implemented Interfaces:
- CLParser
- Direct Known Subclasses:
- ClientCLParser, DaemonCLParser, DeployerCLParser
public class BaseCLParser
- extends Object
- implements CLParser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
protected final OutputStream out
options
protected final org.apache.commons.cli.Options options
commandLine
protected org.apache.commons.cli.CommandLine commandLine
BaseCLParser
public BaseCLParser(OutputStream out)
parse
public void parse(String[] args)
throws CLParserException
- Specified by:
parse
in interface CLParser
- Throws:
CLParserException
isHelp
public boolean isHelp()
- Specified by:
isHelp
in interface CLParser
isVerboseInfo
public boolean isVerboseInfo()
- Specified by:
isVerboseInfo
in interface CLParser
isVerboseDebug
public boolean isVerboseDebug()
- Specified by:
isVerboseDebug
in interface CLParser
isVerboseTrace
public boolean isVerboseTrace()
- Specified by:
isVerboseTrace
in interface CLParser
getArgs
public String[] getArgs()
displayHelp
public void displayHelp()
- Specified by:
displayHelp
in interface CLParser
displayHelp
protected void displayHelp(String[] args)
validateOptions
protected void validateOptions()
throws CLParserException
- Throws:
CLParserException
validateRemainingArgs
protected void validateRemainingArgs()
throws CLParserException
- Throws:
CLParserException
addHelp
protected void addHelp()
addVerboseOptions
protected void addVerboseOptions()
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.