]> git.street.me.uk Git - andy/viking.git/blame - help/C/commandline.xml
[DOC] Add manual section about the command line options.
[andy/viking.git] / help / C / commandline.xml
CommitLineData
1a358f70
RN
1<?xml version="1.0"?>
2<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
4 [<!ENTITY appname "Viking">]
5>
6<section id="commandline">
7<title>Command Line</title>
8<para>
9&appname; being a Graphical User Interface program only has a few command line options.
10</para>
11
12<para>
13<screen>viking [OPTIONS...] files+</screen>
14</para>
15
16<para>
17Note that the ordering of files can be important depending on their file type.
18Subsequent non Viking project files are loaded into the previous Viking project, with the files being processed left to right.
19Some examples:
20</para>
21<itemizedlist>
22<listitem><para><literal>viking file1.gpx file2.gpx file3.gpx</literal></para><para> Here all GPX files are loaded into a new &appname; project in one window.</para></listitem>
23<listitem><para><literal>viking file1.vik file2.vik</literal></para><para> Each &appname; project file is opened in a new window.</para></listitem>
24<listitem><para><literal>viking file1.vik file2.gpx file3.gpx</literal></para><para> The GPX files are loaded into the &appname; project in one window.</para></listitem>
25<listitem><para><literal>viking file2.gpx file3.gpx file1.vik</literal></para><para> The GPX files are loaded into a new &appname; project in a one window and the &appname; project is loaded seperately in a seperate window.</para></listitem>
26</itemizedlist>
27
28<table frame='all'><title>Command Line Reference</title>
29<tgroup cols='3' align='left' colsep='1' rowsep='1'>
30<thead>
31<row>
32 <entry>Short Option</entry>
33 <entry>Long Option</entry>
34 <entry>Description</entry>
35</row>
36</thead>
37<tbody>
38<row>
39 <entry>-h</entry>
40 <entry>--help</entry>
41 <entry>Show the command line options and then exit.</entry>
42</row>
43<row>
44 <entry>-V</entry>
45 <entry>--verbose</entry>
46 <entry>Run in verbose mode. Some information about what &appname; is doing is shown in stdout.</entry>
47</row>
48<row>
49 <entry>-d</entry>
50 <entry>--debug</entry>
51 <entry>Run in debug mode. Even more information about what &appname; is doing is shown in stdout.
52This also enables some extra information features in the GUI itself, primarily of interest to developers.
53 </entry>
54</row>
55<row>
56 <entry>-v</entry>
57 <entry>--version</entry>
58 <entry>Show the version and then exit.</entry>
59</row>
60</tbody>
61</tgroup>
62</table>
63
64<note>
65<para>
66As a special combination when both <emphasis>-V and -d</emphasis> are both enabled at the same time, &appname; will not delete some of the temporary files created during the program run.
67This is especially useful to monitor results of download requests (which need to be interpreted) if they suddenly start failing, as the file will have often more detailed information about the failure mode.
68</para>
69</note>
70
71<para>
72&appname; being a GTK+ program means some options are processed by GTK+ itself such as --display. Use the following to find out what they are for your system:
73<screen>viking --help-gtk</screen>
74</para>
75
76</section>