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, IOException
BadUsageException
IOException
public CommandDocument parseArguments(String[] args) throws BadUsageException, IOException
BadUsageException
IOException
public void throwUsage(ErrorVisitor errors) throws BadUsageException, IOException
BadUsageException
IOException
public String getUsage() throws TransformerException, IOException
TransformerException
IOException
public String getDetailedUsage() throws TransformerException, IOException
TransformerException
IOException
public String getFormattedDetailedUsage() throws TransformerException, IOException
TransformerException
IOException
public String getToolUsage()
Apache CXF