Package com.powsybl.tools
Class CommandLineTools
- java.lang.Object
-
- com.powsybl.tools.CommandLineTools
-
public class CommandLineTools extends Object
- Author:
- Geoffroy Jamgotchian
, Mathieu Bague
-
-
Field Summary
Fields Modifier and Type Field Description static int
COMMAND_NOT_FOUND_STATUS
static int
COMMAND_OK_STATUS
static int
EXECUTION_ERROR_STATUS
static int
INVALID_COMMAND_STATUS
-
Constructor Summary
Constructors Constructor Description CommandLineTools()
CommandLineTools(Iterable<Tool> tools)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
printCommandUsage(String name, org.apache.commons.cli.Options options, String usageFooter, PrintStream err)
int
run(String[] args, ToolInitializationContext initContext)
-
-
-
Field Detail
-
COMMAND_OK_STATUS
public static final int COMMAND_OK_STATUS
- See Also:
- Constant Field Values
-
COMMAND_NOT_FOUND_STATUS
public static final int COMMAND_NOT_FOUND_STATUS
- See Also:
- Constant Field Values
-
INVALID_COMMAND_STATUS
public static final int INVALID_COMMAND_STATUS
- See Also:
- Constant Field Values
-
EXECUTION_ERROR_STATUS
public static final int EXECUTION_ERROR_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
printCommandUsage
public static void printCommandUsage(String name, org.apache.commons.cli.Options options, String usageFooter, PrintStream err)
-
run
public int run(String[] args, ToolInitializationContext initContext)
-
-