summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2005-02-18 13:17:28 +0000
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2005-02-18 13:17:28 +0000
commit1fa5a06bb8ef61eb1a736641138221b1dc16b49e (patch)
treec94b1d4f8bd70c719594a1937c674e61274f2ad9 /main.c
parentf55620a931827ff666e910a7b1ce2b233738cf06 (diff)
downloadhalibut-1fa5a06bb8ef61eb1a736641138221b1dc16b49e.zip
halibut-1fa5a06bb8ef61eb1a736641138221b1dc16b49e.tar.gz
halibut-1fa5a06bb8ef61eb1a736641138221b1dc16b49e.tar.bz2
halibut-1fa5a06bb8ef61eb1a736641138221b1dc16b49e.tar.xz
Add a `--list-charsets' option to Halibut to enumerate canonical names of known
character sets. (Also make libcharset `return_in_enum' values saner.) [originally from svn r5341] [this svn revision also touched charset,filter,timber]
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 8334d15..4304c7c 100644
--- a/main.c
+++ b/main.c
@@ -136,6 +136,9 @@ int main(int argc, char **argv) {
!strcmp(opt, "-license")) {
licence();
nogo = TRUE;
+ } else if (!strcmp(opt, "-list-charsets")) {
+ listcharsets();
+ nogo = TRUE;
} else if (!strcmp(opt, "-precise")) {
reportcols = 1;
} else {