]> git.street.me.uk Git - andy/viking.git/blame - help/C/commandline.xml
Shell test should be '=' rather than '==' for maximum portability.
[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"
0a3a4eb1
RN
4 [
5 <!ENTITY appname "Viking">
6 <!ENTITY dhpackage "viking">
7 ]
1a358f70
RN
8>
9<section id="commandline">
10<title>Command Line</title>
3656598f
RN
11<section>
12<title>Overview</title>
1a358f70
RN
13<para>
14&appname; being a Graphical User Interface program only has a few command line options.
15</para>
16
0a3a4eb1 17<!-- keep this cmdsynopsis aligned with the man page version -->
3656598f
RN
18<refentry>
19 <refnamediv>
20 <refname>&dhpackage;</refname>
21 <refpurpose>program to manage GPS data</refpurpose>
22 </refnamediv>
0a3a4eb1
RN
23 <refsynopsisdiv>
24 <cmdsynopsis>
25 <command>&dhpackage;</command>
26 <group choice="opt">
27 <arg choice="plain"><option>-d</option></arg>
28 <arg choice="plain"><option>--debug</option></arg>
29 </group>
30 <group choice="opt">
31 <arg choice="plain"><option>-V</option></arg>
32 <arg choice="plain"><option>--verbose</option></arg>
33 </group>
34 <sbr/>
35 <group choice="opt">
36 <arg choice="plain"><option>--latitude</option> <replaceable>degrees</replaceable></arg>
37 </group>
38 <group choice="opt">
39 <arg choice="plain"><option>--longitude</option> <replaceable>degrees</replaceable></arg>
40 </group>
41 <sbr/>
42 <group choice="opt">
43 <arg choice="plain"><option>-z</option></arg>
44 <arg choice="plain"><option>--zoom</option> <replaceable>ZoomLevelOSM</replaceable></arg>
45 </group>
46 <group choice="opt">
47 <arg choice="plain"><option>-m</option></arg>
48 <arg choice="plain"><option>--map</option> <replaceable>MapId</replaceable></arg>
49 </group>
50 <sbr/>
51 <arg rep="repeat"><replaceable>file</replaceable></arg>
52 </cmdsynopsis>
53 <cmdsynopsis>
54 <command>&dhpackage;</command>
55 <group choice="opt">
56 <arg choice="plain"><option>-h</option></arg>
57 <arg choice="plain"><option>--help</option></arg>
58 </group>
59 </cmdsynopsis>
60 <cmdsynopsis>
61 <command>&dhpackage;</command>
62 <group choice="opt">
63 <arg choice="plain"><option>-v</option></arg>
64 <arg choice="plain"><option>--version</option></arg>
65 </group>
66 </cmdsynopsis>
67 </refsynopsisdiv>
3656598f
RN
68 <!-- Blank to keep xmllint parsing happy -->
69 <refsection>
70 <title></title><para></para>
71 </refsection>
72</refentry>
73</section>
1a358f70 74
3656598f 75<section><title>Details</title>
1a358f70
RN
76<para>
77Note that the ordering of files can be important depending on their file type.
78Subsequent non Viking project files are loaded into the previous Viking project, with the files being processed left to right.
79Some examples:
80</para>
81<itemizedlist>
82<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>
83<listitem><para><literal>viking file1.vik file2.vik</literal></para><para> Each &appname; project file is opened in a new window.</para></listitem>
84<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>
85<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>
86</itemizedlist>
87
88<table frame='all'><title>Command Line Reference</title>
89<tgroup cols='3' align='left' colsep='1' rowsep='1'>
90<thead>
91<row>
92 <entry>Short Option</entry>
93 <entry>Long Option</entry>
94 <entry>Description</entry>
95</row>
96</thead>
97<tbody>
98<row>
99 <entry>-h</entry>
100 <entry>--help</entry>
101 <entry>Show the command line options and then exit.</entry>
102</row>
103<row>
104 <entry>-V</entry>
105 <entry>--verbose</entry>
106 <entry>Run in verbose mode. Some information about what &appname; is doing is shown in stdout.</entry>
107</row>
108<row>
109 <entry>-d</entry>
110 <entry>--debug</entry>
111 <entry>Run in debug mode. Even more information about what &appname; is doing is shown in stdout.
112This also enables some extra information features in the GUI itself, primarily of interest to developers.
113 </entry>
114</row>
115<row>
116 <entry>-v</entry>
117 <entry>--version</entry>
118 <entry>Show the version and then exit.</entry>
119</row>
c12d4347
RN
120<row>
121 <entry>N/A</entry>
122 <entry>--latitude</entry>
123 <entry>Set the initial position to the specified latitude in decimal degrees.</entry>
124</row>
125<row>
126 <entry>N/A</entry>
127 <entry>--longitude</entry>
128 <entry>Set the initial position to the specified longitude in decimal degrees.</entry>
129</row>
130<row>
131 <entry>-z</entry>
132 <entry>--zoom</entry>
133 <entry>Set the initial zoom level. The value is the OSM zoom level (0 - 22).</entry>
134</row>
135<row>
136 <entry>-m</entry>
137 <entry>--map</entry>
138 <entry>Add a map layer by specifying the map id. The value needs to match one of the internal ids or an id from the <xref linkend="map_source"/>.
139 Specifying a value of 0 will use the configured map layer default.</entry>
140</row>
1a358f70
RN
141</tbody>
142</tgroup>
143</table>
144
c12d4347 145<variablelist>
3656598f
RN
146 <varlistentry><term></term><listitem><para>Internal Map Ids:</para></listitem></varlistentry>
147 <varlistentry><term></term><listitem><para>OSM Mapnik = 13</para></listitem></varlistentry>
148 <varlistentry><term></term><listitem><para>OSM Cycle = 17</para></listitem></varlistentry>
149 <varlistentry><term></term><listitem><para>Mapquest OSM = 19</para></listitem></varlistentry>
c12d4347
RN
150</variablelist>
151
152<para>
153An example to open at a specified location with an OSM Mapnik map layer:
154<screen>viking --latitude 51.4 --longitude -1.3 --zoom 12 --map 13</screen>
155If a file is also specified on the command line, the command line location and zoom parameters will take precendence.
156</para>
157
1a358f70
RN
158<note>
159<para>
160As 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.
161This 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.
162</para>
163</note>
164
165<para>
166&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:
167<screen>viking --help-gtk</screen>
168</para>
169
170</section>
3656598f 171</section>