public abstract class CmdHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
ModuleCst |
cst |
ToolCmdHandlerCst |
cstCmd |
org.apache.commons.cli.HelpFormatter |
helpFormatter |
org.apache.commons.cli.Options |
options |
| Constructor and Description |
|---|
CmdHandler(ModuleCst cst,
ToolCmdHandlerCst cstCmd) |
| Modifier and Type | Method and Description |
|---|---|
void |
ending(String message,
boolean showHelp)
Ends the program (without error).
|
void |
ending(String message,
boolean showHelp,
boolean showDesc,
boolean showContact) |
abstract void |
processArgs(String[] args) |
void |
showCmdLineExamples() |
void |
showContact() |
void |
showDescription()
Show the description of the module if any
|
void |
showRef() |
public ModuleCst cst
public ToolCmdHandlerCst cstCmd
public org.apache.commons.cli.Options options
public org.apache.commons.cli.HelpFormatter helpFormatter
public CmdHandler(ModuleCst cst, ToolCmdHandlerCst cstCmd) throws SLIB_Exception
cst - cstCmd - SLIB_Exceptionpublic abstract void processArgs(String[] args) throws SLIB_Exception
args - SLIB_Exceptionpublic void showCmdLineExamples()
throws SLIB_Exception
SLIB_Exceptionpublic final void showDescription()
public void showContact()
public final void showRef()
public void ending(String message, boolean showHelp, boolean showDesc, boolean showContact)
message - showHelp - showDesc - showContact - public void ending(String message, boolean showHelp)
message - the message to show set to null if not messageshowHelp - Copyright © 2014. All rights reserved.