Mercurial > hg > dmlib
diff tools/fontconv.c @ 860:daebbf28953d
The argument handling API in dmargs* was synced with th-libs.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 22 Nov 2014 18:50:07 +0200 |
parents | 3d813c81f33c |
children | 56e12109b936 |
line wrap: on
line diff
--- a/tools/fontconv.c Sat Nov 22 18:45:12 2014 +0200 +++ b/tools/fontconv.c Sat Nov 22 18:50:07 2014 +0200 @@ -21,7 +21,7 @@ SDL_Color optColor = { 255, 255, 255, 100 }; -DMOptArg optList[] = +static const DMOptArg optList[] = { { 0, '?', "help", "Show this help", OPT_NONE }, { 1, 'v', "verbose", "Be more verbose", OPT_NONE }, @@ -41,7 +41,7 @@ dmPrintBanner(stdout, dmProgName, "[options] <sourcefile.(ttf|fnt|dmf|png)> <outputfile.dmf>"); - dmArgsPrintHelp(stdout, optList, optListN); + dmArgsPrintHelp(stdout, optList, optListN, 0); printf( "\n" "This utility can be used to convert TSFONT files to bitmap DMFONT (DMF)\n" @@ -282,7 +282,7 @@ // Parse arguments if (!dmArgsProcess(argc, argv, optList, optListN, - argHandleOpt, argHandleFile, TRUE)) + argHandleOpt, argHandleFile, OPTH_BAILOUT)) exit(1); // Check arguments