Skip to content

Commit d8fc4c5

Browse files
committed
documentation: add commmand-line option reference
Currently, that's just the output of `pmdb --help`, but it may get more detailed in the future.
1 parent 03bfc36 commit d8fc4c5

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed

documentation/SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
[Using pmdb](basic_usage.md)
88

9+
[Command-line options](extended_usage.md)
10+
911
[Location of pmdb's files](directories.md)
1012

1113
[Templates](templates.md)

documentation/basic_usage.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,8 @@ And `pmdb` will then open the generated HTML file in the browser.
124124
In general, `pmdb` will let you combine paramaters and tasks freely most of the
125125
time. (There are some exceptions like the `--help` or `--version` parameters
126126
which will just print the information and then exit.)
127+
128+
## Further options
129+
130+
`pmdb` provides more options, but those are usually not required that often. To
131+
see them, take a look at the [command-line option reference](extended_usage.md).

documentation/extended_usage.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# pmdb command-line options
2+
3+
`pmdb` provides the following command-line options:
4+
5+
```
6+
pmdb
7+
8+
Manages private messages exported from vBulletin in XML format.
9+
10+
options:
11+
--help - Displays this help message and quits.
12+
-? - same as --help
13+
--version - Displays the version of the program and quits.
14+
-v - same as --version
15+
-xml FILENAME - Sets the name of the XML file that contains the private
16+
messages to FILENAME. Must not be omitted.
17+
--xml=FILENAME - same as -xml
18+
--load-default - Tries to load messages from the default directory.
19+
This option is enabled by default.
20+
--no-load-default - Prevents the program from automatically loading messages
21+
from the default directory.
22+
Mutually exclusive with --load-default.
23+
--load=DIR - Tries to load all messages saved in the directory DIR.
24+
This option can be given more than once, however the
25+
directory has to be different every time.
26+
--save - All messages will be saved after the XML files were read
27+
and the messages from the load directories have been
28+
loaded. Enabled by default.
29+
--no-save - Prevents the program from saving any read messages.
30+
Mutually exclusive with --save.
31+
--compress - Save and load operations (see --save and --load) will use
32+
compression, i.e. messages are compressed using zlib
33+
before they are saved to files, and they will be decom-
34+
pressed when they are loaded from files. By default,
35+
messages will NOT be compressed for backwards compatibi-
36+
lity with earlier pmdb versions.
37+
--no-save-check - This option prevents the program from checking the
38+
compression status of messages when saving to an existing
39+
directory. Note that this is not recommended, because it
40+
could result in a mixup where a directory contains both
41+
compressed and uncompressed messages, making some of the
42+
messages unreadable by the program.
43+
--html - Creates HTML files for every message.
44+
--xhtml - Like --html, but use XHTML instead of HTML.
45+
--no-br - Do not convert new line characters to line breaks in
46+
(X)HTML output.
47+
--no-list - Do not parse [LIST] codes when creating HTML files.
48+
--table=CLASS - Sets the class for grids in <table> to CLASS.
49+
Must occur together with --row and --cell.
50+
--row=CLASS - Sets the class for grids in <tr> to CLASS.
51+
Must occur together with --table and --cell.
52+
--cell=CLASS - Sets the class for grids in <td> to CLASS.
53+
Must occur together with --table and --row.
54+
--std-classes - Sets the 'standard' classes for the three class options.
55+
This is equivalent to specifying all these parameters:
56+
--table=grid_table
57+
--row=grid_tr
58+
--cell=grid_td
59+
--no-open - Usually the program tries to open the generated HTML
60+
files in a web browser for viewing. If this option is
61+
given, no such attempt is made.
62+
--subset-check - Search for messages with texts that are completely
63+
contained in other messages, too.
64+
--list-from X - List all messages that were sent by user X, where X stands
65+
for the name of the user (not the numeric user id).
66+
Can occur multiple times for more than one user.
67+
--list-to X - List all messages that were sent to user X, where X stands
68+
for the name of the user (not the numeric user id).
69+
Can occur multiple times for more than one user.
70+
```
71+
72+
Most of those options can be combined freely, except those that are obviously
73+
contradicting each other, like `--save` and `--no-save` for example.

0 commit comments

Comments
 (0)