Add a `--list-charsets' option to Halibut to enumerate canonical names of known
[sgt/halibut] / main.c
diff --git a/main.c b/main.c
index 8334d15..4304c7c 100644 (file)
--- 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 {