diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 14:40:08 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 14:40:08 (EDT) |
commit | 16332bd57b86edebaefa83c6ca8fb3d04048e93d (patch) | |
tree | 283397d9d80cd261402933f3d536e33abe946baa /src/main.c | |
parent | eb7115b77e55fb049edd5582b114eefb246edf40 (diff) |
font_list(): New function
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -60,6 +60,10 @@ main(int argc, char **argv) while ((opt = getopt(argc, argv, "f:w:h:")) != -1) { switch (opt) { case 'f': + if (strcmp(optarg, "list") == 0) { + font_list(stdout); + return 0; + } font = font_find(optarg); if (!font) { fprintf(stderr, _("Font \"%s\" not " |