# HG changeset patch # User Matti Hamalainen # Date 1366024817 -10800 # Node ID 7303c43bf347dfba38ccf8e2bfb78e753bf2cb51 # Parent afdcd000313c5a4d0a0f7b42775517fb3e387e1f Fix fontconv option handling again. diff -r afdcd000313c -r 7303c43bf347 fontconv.c --- a/fontconv.c Mon Apr 15 13:26:57 2013 +0300 +++ b/fontconv.c Mon Apr 15 14:20:17 2013 +0300 @@ -26,6 +26,7 @@ { { 0, '?', "help", "Show this help", OPT_NONE }, { 1, 'v', "verbose", "Be more verbose", OPT_NONE }, + { 2, 'o', "output" "Set output filename", OPT_ARGREQ }, { 3, 's', "size", "Set glyph dimensions (-s WxH) for image->font conversion", OPT_ARGREQ }, { 4, 'c', "color", "TTF font rendering color (def: 0xFFFFFF)", OPT_ARGREQ }, }; @@ -55,6 +56,10 @@ dmVerbosity++; break; + case 2: + optOutFilename = optArg; + break; + case 3: { int w, h; @@ -113,7 +118,7 @@ if (!optInFilename) optInFilename = currArg; else - if (optOutFilename) + if (!optOutFilename) optOutFilename = currArg; else {