Lines Matching defs:optCon
194 poptContext optCon;
204 optCon = poptGetContext("test1", argc, argv, options, 0);
205 (void) poptReadConfigFile(optCon, "./test-poptrc");
206 (void) poptReadDefaultConfig(optCon, 1);
208 poptSetExecPath(optCon, ".", 1);
211 while ((rc = poptGetNextOpt(optCon)) > 0) /* Read all the options ... */
214 poptResetContext(optCon); /* ... and then start over. */
219 if ((rc = poptGetNextOpt(optCon)) < -1) {
221 poptBadOption(optCon, POPT_BADOPTION_NOALIAS),
228 poptPrintHelp(optCon, stdout, 0);
232 poptPrintUsage(optCon, stdout, 0);
283 if (poptPeekArg(optCon) != NULL) {
284 rest = poptGetArgs(optCon);
297 optCon = poptFreeContext(optCon);