public class CommandLineTools extends Object
Modifier and Type | Field and Description |
---|---|
static int |
COMMAND_NOT_FOUND_STATUS |
static int |
COMMAND_OK_STATUS |
static int |
EXECUTION_ERROR_STATUS |
static int |
INVALID_COMMAND_STATUS |
Constructor and Description |
---|
CommandLineTools() |
CommandLineTools(Iterable<Tool> tools) |
Modifier and Type | Method and Description |
---|---|
static void |
printCommandUsage(String name,
org.apache.commons.cli.Options options,
String usageFooter,
PrintStream err) |
int |
run(String[] args,
ToolInitializationContext initContext) |
public static final int COMMAND_OK_STATUS
public static final int COMMAND_NOT_FOUND_STATUS
public static final int INVALID_COMMAND_STATUS
public static final int EXECUTION_ERROR_STATUS
public static void printCommandUsage(String name, org.apache.commons.cli.Options options, String usageFooter, PrintStream err)
public int run(String[] args, ToolInitializationContext initContext)
Copyright © 2020. All rights reserved.