From 16332bd57b86edebaefa83c6ca8fb3d04048e93d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 18 Jul 2019 14:40:08 -0400 Subject: font_list(): New function --- (limited to 'src/main.c') 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 " -- cgit v0.9.1