X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/bc7e2a4bfd45b8f0d2ca48eb70fd4a791602ad02..46c7302f13bc04db65afa5e5f0195fe10cf22c47:/help.c diff --git a/help.c b/help.c index 1ba84bb..e31f784 100644 --- a/help.c +++ b/help.c @@ -11,7 +11,12 @@ static char *helptext[] = { " --html[=filename] generate XHTML output", " --winhelp[=filename] generate Windows Help output", " --man[=filename] generate man page output", + " --info[=filename] generate GNU info output", + " --ps[=filename] generate PostScript output", + " --pdf[=filename] generate PDF output", " -Cfoo:bar:baz append \\cfg{foo}{bar}{baz} to input", + " --input-charset=cs change default input file charset", + " --list-charsets display supported character set names", " --precise report column numbers in error messages", " --help display this text", " --version display version number", @@ -20,7 +25,7 @@ static char *helptext[] = { }; static char *usagetext[] = { - "usage: halibut [--format[=filename]] [-Cconfig...] file.but [file.but...]", + "usage: halibut [--format[=filename]] [options] file.but [file.but...]", NULL }; @@ -39,3 +44,13 @@ void usage(void) { void showversion(void) { printf("Halibut, %s\n", version); } + +void listcharsets(void) { + int i = 0, c; + do { + c = charset_localenc_nth(i); + if (c == CS_NONE) break; + printf("%s\n", charset_to_localenc(c)); + i++; + } while (1); +}