slib.tools.module
Class CmdHandler
java.lang.Object
slib.tools.module.CmdHandler
public abstract class CmdHandler
- extends Object
Abstract command handler
- Author:
- Sebastien Harispe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cst
public ModuleCst cst
cstCmd
public ToolCmdHandlerCst cstCmd
options
public org.apache.commons.cli.Options options
helpFormatter
public org.apache.commons.cli.HelpFormatter helpFormatter
optionsOrder
public Map<org.apache.commons.cli.Option,Integer> optionsOrder
CmdHandler
public CmdHandler(ModuleCst cst,
ToolCmdHandlerCst cstCmd,
String[] args)
throws slib.utils.ex.SLIB_Exception
- Parameters:
cst
- cstCmd
- args
-
- Throws:
slib.utils.ex.SLIB_Exception
processArgs
public abstract void processArgs(String[] args)
throws slib.utils.ex.SLIB_Exception
- Parameters:
args
-
- Throws:
slib.utils.ex.SLIB_Exception
showCmdLineExamples
public void showCmdLineExamples()
throws slib.utils.ex.SLIB_Exception
- Throws:
slib.utils.ex.SLIB_Exception
showDescription
public void showDescription()
showContact
public void showContact()
showRef
public final void showRef()
ending
public void ending(String message,
boolean showHelp,
boolean showDesc,
boolean showContact)
- Parameters:
message
- showHelp
- showDesc
- showContact
-
ending
public void ending(String message,
boolean showHelp)
- Parameters:
message
- showHelp
-
Copyright © 2013. All Rights Reserved.