public class CommandLineTool extends edu.sc.seis.seisFile.client.AbstractClient
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
requiresStdin |
args, commandName, DEFAULT_USER_AGENT, HELP, jsap, params, result, userAgent, VERSION| Constructor and Description |
|---|
CommandLineTool(java.lang.String[] args) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addParams() |
org.apache.velocity.VelocityContext |
getContext() |
java.io.InputStream |
getTemplate() |
static void |
run(CommandLineTool ls) |
boolean |
shouldPrintRecipe() |
add, createListOption, createListOption, createListOption, getArgs, getCommandName, getHelp, getParams, getResult, getUserAgent, isSpecified, isSuccess, requiresAtLeastOneArg, setUserAgent, shouldPrintHelp, shouldPrintVersionpublic CommandLineTool(java.lang.String[] args)
throws com.martiansoftware.jsap.JSAPException
com.martiansoftware.jsap.JSAPExceptionprotected void addParams()
throws com.martiansoftware.jsap.JSAPException
addParams in class edu.sc.seis.seisFile.client.AbstractClientcom.martiansoftware.jsap.JSAPExceptionpublic org.apache.velocity.VelocityContext getContext()
public boolean shouldPrintRecipe()
public java.io.InputStream getTemplate()
throws java.io.IOException
java.io.IOExceptionpublic static void run(CommandLineTool ls) throws java.lang.Exception
java.lang.Exception