summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPatrick 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)
commit16332bd57b86edebaefa83c6ca8fb3d04048e93d (patch)
tree283397d9d80cd261402933f3d536e33abe946baa /src/main.c
parenteb7115b77e55fb049edd5582b114eefb246edf40 (diff)
font_list(): New function
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 411902c..e6fdada 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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 "