root/branches/mbutscher/work/WikidPadHelp/data/CommandLineSupport.wiki @ 258

Revision 258, 3.6 kB (checked in by APA, 2 years ago)

WikidPadHelp?: more changes

Line 
1[:page:PageHeader][:toc:]
2+ Command Line Support
3
4++ Old form
5
6You can have up to two command line parameters, without leading '-'
7which have the following meaning:
8
9+++++ First Parameter
10*First parameter* can be a path to a .wiki file (either a text file with
11WikiPage content (this page is opened then) or the wiki configuration
12file). Instead of a path it can also be an URL with wiki: protocol
13
14+++++ Second parameter*
15*Second parameter* can be the name of a wiki word to open, if not
16specified in the first parameter.
17
18
19++ New form
20
21You can specify switches and/or parameters on the command line where
22the names of the switches either consist of a '-' and a character
23(short form, e.g. "-h") or begin with two dashes and a name (long
24form, e.g. "--help").
25
26Some switches also take a parameter which must follow the switch on
27the command line.
28
29The following list of switches shows the short form (not present for
30all options), the long form and (if necessary) the meaning of the
31parameter in angle brackets:
32
33
34+++ General
35
36+++++ -h, --help
37Shows a message box with a short overview of available switches.
38
39+++++ -w, --wiki  <wiki path>
40Set the wiki to open on startup (same as first parameter of old form).
41
42+++++ -p, --page <page name>
43Set the page to open on startup (same as second parameter of old form). You can repeat this parameter multiple times to open multiple tabs.
44
45+++++ --rebuild
46Rebuild the opened wiki.
47
48+++++ --no-recent
49Do not record opened wikis in recently opened wikis list found in menu "Wiki" as submenu "Recent"
50
51+++++ --preview
52If no pages are given, all opened pages from previous session are opened in preview mode. Otherwise all pages mentioned on command line after that option are opened in preview mode.
53
54+++++ --editor
55Same as --preview but opens in text editor mode. You can use both switches in conjunction, e.g.
56
57-p Page1 --preview -p Page2 -p Page3 --editor -p Page4
58
59opens Page1 in editor mode (editor is the default mode), Page2 and Page3 are opened as preview, Page4 in editor mode again
60
61+++++ -x, --exit
62Exit immediately after command line actions were completed.
63
64
65+++ Exporting
66
67The following three must all be specified if you want to export
68something, the fourth (--export-compfn) is optional:
69
70+++++ --export-what <what>
71Choose if you want to export *page*, *subtree* or *wiki*.
72
73+++++ --export-type <type>
74Tag of the export type. Currently this can be:
75
76    * html_single: A single WikiPage per HTML file
77    * html_multi: Multiple WikiPages in one HTML file
78    * raw_files: Set of \*.wiki files in UTF-8 format with BOM
79
80Attention: In 1.9 the meaning of "html_single" and "html_multi"
81were reversed!
82
83+++++ --export-dest <destination path>
84Path of destination directory for export.
85
86
87+++++ --export-compfn
88Use compatible filenames on export.
89
90+++++ --export-saved <name of saved export>
91Instead of the first three you can also use this to run a previously saved export profile
92
93+++++ --continuous-export-saved <name of saved export>
94Use this to start a continuous export when starting WikidPad
95
96
97+++ Special
98
99+++++ --deleteconfig
100If this is the only switch on the command line, the program deletes
101(*without further request!*) the configuration files which are the
102main "WikidPad.config" file as well as everything in
103".WikidPadGlobals" directory (normally only the global text blocks
104file).
105
106After that the program terminates immediately (otherwise the files
107would be recreated).
108
109This switch is mainly used for the uninstalling of a MsWindowsBinary.
110The uninstaller *will* ask before running WikidPad with this option.
111
112
113[:page:PageFooter][icon:console]
Note: See TracBrowser for help on using the browser.