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