Class CommandLineParser
java.lang.Object
org.openspaces.pu.container.support.CommandLineParser
A simple command line parser transforming a list of string arguments into
CommandLineParser.Parameter arguments. The arguments are in
the form of -param1 arg1 arg2 -parm2 arg1.- Author:
- kimchy
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandLineParser.Parameter[]static CommandLineParser.Parameter[]static CommandLineParser.Parameter[]
-
Constructor Details
-
CommandLineParser
public CommandLineParser()
-
-
Method Details
-
parse
- Throws:
IllegalArgumentException
-
parse
public static CommandLineParser.Parameter[] parse(String[] args, Set<String> parametersWithoutValues) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
parse
public static CommandLineParser.Parameter[] parse(String[] args, int length) throws IllegalArgumentException - Throws:
IllegalArgumentException
-