in taverna-commandline-launcher/src/main/java/org/apache/taverna/commandline/CommandLineOptionsImpl.java [289:390]
private Options intitialiseOptions() {
Option helpOption = new Option("help", "Display comprehensive help information.");
Option outputOption = OptionBuilder
.withArgName("directory")
.hasArg()
.withDescription(
"Save outputs as files in directory, default "
+ "is to make a new directory workflowName_output.")
.create(OUTPUTDIR);
Option bundleOption = OptionBuilder.withArgName(BUNDLE).hasArg()
.withDescription("Save outputs to a new Data Bundle (zip).")
.create(BUNDLE);
Option logFileOption = OptionBuilder
.withArgName("filename")
.hasArg()
.withDescription(
"The logfile to which more verbose logging will be written to.")
.create("logfile");
Option inputdocOption = OptionBuilder.withArgName("document").hasArg()
.withDescription("Load inputs from a Baclava document.").create(
"inputdoc");
Option inputBundleOption = OptionBuilder.withArgName("bundle").hasArg()
.withDescription("Load inputs from a Data Bundle zip file.").create(
INPUT_BUNDLE);
Option inputFileOption = OptionBuilder
.withArgName("inputname filename").hasArgs(2)
.withValueSeparator(' ').withDescription(
"Load the named input from file or URL.").create(
"inputfile");
Option inputValueOption = OptionBuilder.withArgName("inputname value")
.hasArgs(2).withValueSeparator(' ').withDescription(
"Directly use the value for the named input.").create(
"inputvalue");
Option inputDelimiterOption = OptionBuilder
.withArgName("inputname delimiter")
.hasArgs(2)
.withValueSeparator(' ')
.withDescription(
"Cause an inputvalue or inputfile to be split into a list according to the delimiter. The associated workflow input must be expected to receive a list.")
.create("inputdelimiter");
Option dbProperties = OptionBuilder.withArgName("filename").hasArg()
.withDescription(
"Load a properties file to configure the database.")
.create("dbproperties");
Option port = OptionBuilder
.withArgName("portnumber")
.hasArg()
.withDescription(
"The port that the database is running on. If set requested to start its own internal server, this is the start port that will be used.")
.create("port");
Option embedded = new Option("embedded",
"Connect to an embedded Derby database. This can prevent mulitple invocations.");
Option clientserver = new Option("clientserver",
"Connect as a client to a derby server instance.");
Option inMemOption = new Option(
"inmemory",
"Run the workflow with data stored in-memory rather than in a database (this is the default option). This can give performance inprovements, at the cost of overall memory usage.");
Option startDB = new Option("startdb",
"Automatically start an internal Derby database server.");
Option provenance = new Option("provenance",
"Generate provenance information and store it in the database.");
Option credentialManagerDirectory = OptionBuilder.withArgName("directory path").
hasArg().withDescription(
"Absolute path to a directory where Credential Manager's files (keystore and truststore) are located.")
.create(CREDENTIAL_MANAGER_DIR_OPTION);
Option credentialManagerPassword = new Option(CREDENTIAL_MANAGER_PASSWORD_OPTION, "Indicate that the master password for Credential Manager will be provided on standard input."); // optional password option, to be read from standard input
Options options = new Options();
options.addOption(helpOption);
options.addOption(inputFileOption);
options.addOption(inputValueOption);
options.addOption(inputBundleOption);
options.addOption(inputDelimiterOption);
options.addOption(outputOption);
options.addOption(bundleOption);
options.addOption(inMemOption);
// TAVERNA-972: Unused database parameters disabled
// options.addOption(embedded);
// options.addOption(clientserver);
// options.addOption(dbProperties);
// options.addOption(port);
// options.addOption(startDB);
// options.addOption(provenance);
options.addOption(logFileOption);
options.addOption(credentialManagerDirectory);
options.addOption(credentialManagerPassword);
return options;
}