Mercurial > hg > dmlib
diff tools/ppl.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 | eba3b87f3f84 |
children | 985225a93aeb |
line wrap: on
line diff
--- a/tools/ppl.c Sat Nov 22 18:45:12 2014 +0200 +++ b/tools/ppl.c Sat Nov 22 18:50:07 2014 +0200 @@ -54,7 +54,7 @@ size_t optPlayTime; -DMOptArg optList[] = +static const DMOptArg optList[] = { { 0, '?', "help", "Show this help", OPT_NONE }, { 1, 'v', "verbose", "Be more verbose", OPT_NONE }, @@ -78,7 +78,7 @@ void argShowHelp() { dmPrintBanner(stdout, dmProgName, "[options] <module>"); - dmArgsPrintHelp(stdout, optList, optListN); + dmArgsPrintHelp(stdout, optList, optListN, 0); } @@ -571,7 +571,7 @@ // Parse arguments if (!dmArgsProcess(argc, argv, optList, optListN, - argHandleOpt, argHandleFile, TRUE)) + argHandleOpt, argHandleFile, OPTH_BAILOUT)) exit(1); // Open the files