Mercurial > hg > dmlib
diff tools/gentab.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 | a75ffe7a02b9 |
children | 985225a93aeb |
line wrap: on
line diff
--- a/tools/gentab.c Sat Nov 22 18:45:12 2014 +0200 +++ b/tools/gentab.c Sat Nov 22 18:50:07 2014 +0200 @@ -50,7 +50,7 @@ *optOutFilename = NULL; -static DMOptArg optList[] = +static const DMOptArg optList[] = { { 0, '?', "help", "Show this help", OPT_NONE }, { 1, 'v', "verbose", "Increase verbosity", OPT_NONE }, @@ -75,7 +75,7 @@ { int index; dmPrintBanner(stdout, dmProgName, "[options]"); - dmArgsPrintHelp(stdout, optList, optListN); + dmArgsPrintHelp(stdout, optList, optListN, 0); printf("\nAvailable types:\n"); for (index = 0; index < MT_LAST; index++) @@ -182,7 +182,7 @@ // Parse arguments if (!dmArgsProcess(argc, argv, optList, optListN, - argHandleOpt, NULL, TRUE)) + argHandleOpt, NULL, OPTH_BAILOUT)) exit(1); // Check settings