public class CommandLineParser extends Object
Constructor and Description |
---|
CommandLineParser(ToolSpec ts) |
Modifier and Type | Method and Description |
---|---|
static String[] |
getArgsFromString(String s) |
String |
getDetailedUsage() |
String |
getDetailedUsage(String id) |
String |
getFormattedDetailedUsage() |
String |
getToolUsage() |
String |
getUsage() |
CommandDocument |
parseArguments(String args) |
CommandDocument |
parseArguments(String[] args) |
void |
setToolSpec(ToolSpec ts) |
void |
throwUsage(ErrorVisitor errors) |
public CommandLineParser(ToolSpec ts)
public void setToolSpec(ToolSpec ts)
public CommandDocument parseArguments(String args) throws BadUsageException
BadUsageException
public CommandDocument parseArguments(String[] args) throws BadUsageException
BadUsageException
public void throwUsage(ErrorVisitor errors) throws BadUsageException
BadUsageException
public String getUsage() throws TransformerException
TransformerException
public String getDetailedUsage() throws TransformerException
TransformerException
public String getFormattedDetailedUsage() throws TransformerException
TransformerException
public String getToolUsage()
Apache CXF