You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@taverna.apache.org by "Stian Soiland-Reyes (JIRA)" <ji...@apache.org> on 2016/05/31 00:59:12 UTC

[jira] [Commented] (TAVERNA-972) Remove irrelevant/disabled command line options

    [ https://issues.apache.org/jira/browse/TAVERNA-972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15307050#comment-15307050 ] 

Stian Soiland-Reyes commented on TAVERNA-972:
---------------------------------------------

New shorter help output (still a bit verbose - that help.txt needs some trimming)

{code}
stain@biggiebuntu:~/src/taverna/incubator-taverna-commandline/taverna-commandline-product/target/apache-taverna-commandline-3.1.0-incubating-SNAPSHOT$ sh executeworkflow.sh -help
pid:13211
usage: executeworkflow [options] [workflow]
 -bundle <bundle>                        Save outputs to a new Workflow
                                         Run Bundle (zip).
 -cmdir <directory path>                 Absolute path to a directory
                                         where Credential Manager's files
                                         (keystore and truststore) are
                                         located.
 -cmpassword                             Indicate that the master password
                                         for Credential Manager will be
                                         provided on standard input.
 -help                                   Display comprehensive help
                                         information.
 -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.
 -inputdelimiter <inputname delimiter>   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.
 -inputfile <inputname filename>         Load the named input from file or
                                         URL.
 -inputvalue <inputname value>           Directly use the value for the
                                         named input.
 -logfile <filename>                     The logfile to which more verbose
                                         logging will be written to.
 -outputdir <directory>                  Save outputs as files in
                                         directory, default is to make a
                                         new directory
                                         workflowName_output.
By default, the workflow results are written to a directory
named after the workflow name. If this directory already exists, 
then a new directory is created with an incremental number.

Results are written to files named after the output port for that result.
If a result is composed of lists, then a directory is created for the output
port and individual list items are named after the list element index (with 1
being the first index). The the output is the result of an error, the filename
is appended with '.error'.

You can provide your own output directory with the -outputdir option. There
will be an error if the directory already exists.

Inputs can be provided in three ways. Both -inputfile and -inputvalue options
can be used together; both take two additional arguments, the name of the port
for the input, and either a file containing the input data, or the input value
itself respectively.

If one of more of your workflow inputs is a list, you can create a list
input by using the -inputdelimiter option, which may be used with either
-inputfile or -inputvalue. This option takes two parameters - an input name
and the delimiter by which to split the input into a list.

The delimiter may be a simple character, such as a comma or a new-line
character, or a regular expression. The input string, or file, will then be
converted into a list being split by the delimiter specified. Make sure to 
put the delimiter character in quotes as it may be interpreted by the shell 
as a special character, e.g. ;.

-cmdir option lets you specify an absolute path to a directory where 
Credential Manager's files (keystore and truststore - containing user's 
credentials and trusted certificates for accessing secure services) are stored.
If not specified and the workflow requires access to these files, Taverna will 
try to find them in the default location in <TAVERNA_HOME>/security somewhere 
inside user's home directory.

-cmpassword option can be used to tell Taverna to expect the password for the 
Credential Manager on standard input. If the password is not piped in, Taverna 
will prompt you for it in the terminal and block until it is entered. Do not 
enter your password in the command line! If -cmpassword option is not specified 
and -cmdir option is used, Taverna will try to find the password in a special 
file password.txt in the directory specified with -cmdir option.

{code}

Post 3.1.0 we can try to shrink
https://github.com/apache/incubator-taverna-commandline/blob/master/taverna-commandline-launcher/src/main/resources/help.txt

> Remove irrelevant/disabled command line options
> -----------------------------------------------
>
>                 Key: TAVERNA-972
>                 URL: https://issues.apache.org/jira/browse/TAVERNA-972
>             Project: Apache Taverna
>          Issue Type: Bug
>          Components: Taverna Command-line Tool
>    Affects Versions: command-line 3.1.0
>            Reporter: Stian Soiland-Reyes
>            Assignee: Stian Soiland-Reyes
>             Fix For: command-line 3.1.0
>
>
> The command line exposes some options that are not implemented in the 3.1.0 release - e.g. -inputdoc - options like the -startdb ARE implemented, but are not needed as the Hibernate backend is not included.
> Thus these should be commented out so they are removed form the {{-help}} output.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)