summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
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 "