2 * help.c: usage instructions
8 static const char *const helptext
[] = {
9 "usage: halibut [options] files",
10 "options: --text[=filename] generate plain text output",
11 " --html[=filename] generate XHTML output",
12 " --winhelp[=filename] generate Windows Help output",
13 " --man[=filename] generate man page output",
14 " --info[=filename] generate GNU info output",
15 " --ps[=filename] generate PostScript output",
16 " --pdf[=filename] generate PDF output",
17 " -Cfoo:bar:baz append \\cfg{foo}{bar}{baz} to input",
18 " --input-charset=cs change default input file charset",
19 " --list-charsets display supported character set names",
20 " --precise report column numbers in error messages",
21 " --help display this text",
22 " --version display version number",
23 " --licence display licence text",
27 static const char *const usagetext
[] = {
28 "usage: halibut [--format[=filename]] [options] file.but [file.but...]",
34 for (p
= helptext
; *p
; p
++)
40 for (p
= usagetext
; *p
; p
++)
44 void showversion(void) {
45 printf("Halibut, %s\n", version
);
48 void listcharsets(void) {
51 c
= charset_localenc_nth(i
);
52 if (c
== CS_NONE
) break;
53 printf("%s\n", charset_to_localenc(c
));