public class CLI extends Object
JstacsTool
interface.
The generic description of command line parameters is automatically inferred from the corresponding Parameter
s and ParameterSet
s of
the JstacsTool
s.
If this class is used for a single JstacsTool
, the parameters may be supplied directly using a key=value
interface. In case of multiple tools, each specific tool may be addressed by its short name (JstacsTool.getShortName()
).Modifier and Type | Class and Description |
---|---|
static class |
CLI.SysProtocol
Class for a
Protocol that prints messages to System.out and warnings to System.err
and additionally hold a log of all messages in a local StringBuffer that may be, e.g., stored to a file later. |
Constructor and Description |
---|
CLI(boolean[] configureThreads,
JstacsTool... tools)
Creates a new command line interface from a set of Jstacs tools.
|
CLI(JstacsTool... tools) |
public CLI(JstacsTool... tools)
public CLI(boolean[] configureThreads, JstacsTool... tools)
configureThreads
- if the tool at the corresponding index should be configured to use multiple threads, which also means that a parameter threads
is displayed for this tooltools
- (an array of) tool(s) that can be run via the command line interface