- <td><div align="left">Create alignment file FILE in PIR
- format.</div></td>
- </tr>
- <tr>
- <td><div align="center">-pfam FILE</div></td>
- <td><div align="left">Create alignment file FILE in
- PFAM format.</div></td>
- </tr>
- <tr>
- <td><div align="center">-blc FILE</div></td>
- <td><div align="left">Create alignment file FILE in BLC
- format.</div></td>
- </tr>
- <tr>
- <td><div align="center">-json FILE</div></td>
- <td><div align="left">Create alignment file FILE in
- JSON format.</div></td>
- </tr>
- <tr>
- <td><div align="center">-jalview FILE</div></td>
+ <h2><a name="syntax"></a>Syntax</h2>
+
+ <p>
+ The new command line argument parser can group certain labelled arguments together, or give them a default label based on their position in the list of arguments (in which case you won't ever need to know what the label is). All arguments are read before any alignment actions are performed. For basic usage without additional syntax, please see the <a href="clarguments-basic.html">Command Line: basic usage</a> explanatory page.
+ </p>
+
+ <h3>
+ Parts of Jalview's command line arguments
+ </h3>
+ <pre>jalview --argname[linkedId]=[subvalues]value --switch --noswitch --argname[linkedId] [subvalues]filename1 filename2 ...</pre>
+
+ <p>
+ Different arguments can take one or more values, others take no value and act like a switch (some can be set on and off and others are only on, depending on the use).
+ <br/>
+ <ul>
+ <li>
+ For arguments that require a value, the value can be given after an equals-sign ('=') or a space (' ').
+ <br/>
+ <code>‑‑arg value</code>
+ <br/>
+ <code>‑‑arg=value</code>
+ </li>
+ <li>
+ For arguments that can take multiple values (these will be filenames), the multiple filenames should appear after a space. If you use a filename wildcard you can put this after a space (which will be expanded by the shell unto multiple filenames before they reach Jalview), or you can put it after an equals-sign, which will be used by Jalview to find a list of files. You cannot use an equals-sign and value followed by further values.
+ <br/>
+ <code>‑‑arg file1.fa otherfile.stk</code>
+ <br/>
+ <code>‑‑arg filename*.fa</code> <em>(filenames expanded by shell)</em>
+ <br/>
+ <code>‑‑arg=filename*.fa</code> <em>(filenames expanded by Jalview)</em>
+ </li>
+ <li>
+ For arguments that act as a switch, most can be negated by preceding the argument name with <code>no</code>.
+ <br/>
+ <code>‑‑switch</code>
+ <br/>
+ <code>‑‑noswitch</code>
+ </li>
+ <li>
+ Some values can be modified, or may need additional information (for instance an <code>‑‑image</code> output can be modified with a <code>‑‑scale=number</code> factor, or a <code>‑‑structure</code> can refer to a sequence with a <code>‑‑seqid=ID</code>). This additional information can be added in a number of different ways.
+ <ul>
+ <li>
+ An argument immediately following the main argument.
+ <br/>
+ <code>‑‑image output.png --scale 2.5</code>
+ </li>
+ <li>
+ A <em>sub-value modifier</em>, which is where one or more (comma-separated) values are added to the start of the main value, placed in square brackets.
+ <br/>
+ <code>‑‑open=[nowrap,colour=gecos-blossom]uniref50.fa</code>
+ <br/>
+ Sub-value modifiers with a value must use an equals-sign separator, and those that act as a switch can simply be included without an equals-sign or value, and can be preceded with <code>no</code> to negate the value, as with the argument name.
+ </li>
+ <li>
+ Another argument with the same <em>linked ID</em>. A linked ID is an optional identifier for a particular open alignment, placed in square brackets immediately following the argument name (before the equals-sign or space). If linked IDs are specified they do not need to be near to each other.
+ <br/>
+ <code>‑‑image[MYID]=output.png --other --args --scale[MYID]=2.5</code>
+ </li>
+ <li>
+ An argument that is designated as applying to <em>all linked IDs</em>
+ <br/>
+ <code>‑‑image=output.png --other --args --all --scale=2.5</code>
+ <br/>
+ <code>‑‑image=output.png --other --args --scale[*]=2.5</code>
+ </li>
+ </ul>
+ </li>
+ </ul>
+ </p>
+
+ <p>
+ This may sound complicated, but nearly everything can be done just with plain command line arguments (see <a href="clarguments-basic.html">Command Line: basic usage</a>), though in this case the ordering of the arguments is more important.
+ </p>
+
+
+ <h2><a name="headlessmode"></a>Headless mode</h2>
+
+ <p>
+ Jalview can be run in headless mode, i.e. without the usual graphical user interface (GUI), by specifying the <code>‑‑headless</code> argument. With command line arguments you can specify operations for Jalview to perform on one or more files and then stop running. Most likely you will want to output another file, either an alignment for image file.
+ </p>
+ <p>
+ <strong>If you specify an argument for an output file</strong> (one or more of <code>‑‑output</code>, <code>‑‑image</code> or <code>‑‑structureimage</code>) then it will be assumed that you wish to <strong>run in headless mode</strong>.
+ </p>
+ <p>
+ You can force Jalview to run in graphical mode using the <code>‑‑gui</code> argument.
+ </p>
+
+ <p>
+ </p>
+