parent nodes: WorkSpace

Command Line Support

Contents:
Command Line Support
General
Simple format
General
Examples
Extended format
General
General parameters
Export parameters
Special parameters

Back

General

Wikidpad (still) supports two types of commandline suport: Top

Simple format

General

In the old simple format up to two command line parameters are allowed; these should not have a leading hyphen "-". The parameters have the following meaning:

First parameter
Specifies a wiki to be opened; the parameter can either be:Second parameter
Specifies the name of a wiki page to be opened at startup, if it is not already specified in the first parameter.

Examples

• Opening a wiki, with the default page, using the path to the .wiki config file
  "...\WikidPad.exe" "D:\WikidPad\Help\help.wiki" [1].

• Opening a wiki, with a specified page using both parameters
  "...\WikidPad.exe" "D:\WikidPad\Help\help.wiki" "Page history"

• Opening a wiki, with a specified page using only the first parameter
  "...\WikidPad.exe" "D:\WikidPad\Help\help.wiki\Page history.wiki"

• Opening a wiki, with an anchor "here" on a specified page using a wiki url
  "wiki:///D|/WikidPad/Help/help.wiki?page=Page%20history&anchor=here"

Top
[1] The path to the wikidpad executable is not written out in full, but should for instance for windows be something like: "C:\Program Files\WikidPad\WikidPad.exe"

Extended format

General

The new extended format allows the specification of more then two parameters, using "switches" that identify the "parameter type" used. It supports two switch formats:
  1. the short format, consisting of a hyphen "-" and a character, like "-h".
  2. the long format, consisting of two hyphens "--" and a name, like "--help".
Remarks

General parameters

-h, --help
Shows a message box with a short overview of available switches.
example: "...\WikidPad.exe" -h

-w, --wiki <wiki path>
Set the wiki to open on startup; the possible values are the same as for the "first parameter" of the simple format.
example: "...\WikidPad.exe" -w "D:\WikidPad\Help\help.wiki"

-p, --page <page name>
Set the page to open on startup. This parameter is the same as the second parameter of the simple form; it can however be repeated multiple times, to open multiple pages in multiple tabs.
example: "...\WikidPad.exe" --wiki "D:\WikidPad\Help\help.wiki" --page "ThisWiki" "IntroWiki" "HelpWiki".

--rebuild
Rebuild the wiki to be opened. See also: WikiControl
example: "...\WikidPad.exe" --wiki "D:\WikidPad\Help\help.wiki" --rebuild

-x, --exit
Exit immediately after command line actions were completed.
example: See export example.

Export parameters

These parameters allow to export all or part of a wiki's pages. The parameters form a set; the first three listed must all be specified, the fourth (--export-compfn) is optional. See also: ItemPublishing and Wiki export.

--export-what <what>
Specifies the items to be exported; the choice can be either:--export-type <type>
Specifies the type of export to be performed; the current options are:--export-dest <destination path>
Specifies the path of the destination directory for the export.

--export-compfn
Use compatible filenames on export.

example:
 Start WikidPad, export the subtree of the page "IntroWiki" of the wiki "Help" as a set of html pages to the directory "D:\WikidPad\Help\export\intro" and close WikidPad again.

Special parameters

--deleteconfig
If this parameter is used, it must be the only one on the command line. It's function is to delete without further request! the WikidPad.config file ánd the files in the .WikidPadGlobals directory. The program is terminated immediately after this, otherwise the files would be recreated.

This switch is mainly used for the uninstallation of a Windows binary. The uninstaller prógram will ask before running WikidPad with this option.

Top
previous: Back
parents:  WorkSpace
attributes: [tree_position: 9]
[help.status: done]