Package org.harctoolbox.cmdline
Class CmdLineProgram
java.lang.Object
org.harctoolbox.cmdline.CmdLineProgram
- Direct Known Subclasses:
IrpTransmogrifier
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.beust.jcommander.JCommander
protected String
protected final CommandBasicOptions
protected final CommandHelp
protected String[]
protected PrintStream
-
Constructor Summary
ModifierConstructorDescriptionprotected
CmdLineProgram
(PrintStream out, CommandBasicOptions commandLineArgs, String progName) protected
CmdLineProgram
(CommandBasicOptions commandLineArgs, String progName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
final PrintStream
protected void
abstract ProgramExitStatus
protected ProgramExitStatus
protected void
setupCmds
(AbstractCommand... cmds) protected void
void
-
Field Details
-
out
-
argumentParser
protected final com.beust.jcommander.JCommander argumentParser -
commandHelp
-
originalArguments
-
commandBasicOptions
-
command
-
-
Constructor Details
-
CmdLineProgram
-
CmdLineProgram
-
-
Method Details
-
getOutputStream
-
usage
-
run
-
setupCmds
-
parseArgs
-
processHelpAndDescription
-
setupLoggers
- Throws:
UsageException
IOException
-
extraSetup
public void extraSetup() -
processCommand
-