Home
last modified time | relevance | path

Searched refs:optCon (Results 1 – 3 of 3) sorted by relevance

/third_party/popt/tests/
Dtest1.c194 poptContext optCon; in main() local
204 optCon = poptGetContext("test1", argc, argv, options, 0); in main()
205 (void) poptReadConfigFile(optCon, "./test-poptrc"); in main()
206 (void) poptReadDefaultConfig(optCon, 1); in main()
208 poptSetExecPath(optCon, ".", 1); in main()
211 while ((rc = poptGetNextOpt(optCon)) > 0) /* Read all the options ... */ in main()
214 poptResetContext(optCon); /* ... and then start over. */ in main()
219 if ((rc = poptGetNextOpt(optCon)) < -1) { in main()
221 poptBadOption(optCon, POPT_BADOPTION_NOALIAS), in main()
228 poptPrintHelp(optCon, stdout, 0); in main()
[all …]
Dtdict.c57 poptContext optCon = NULL; in main() local
74 optCon = poptGetContext("tdict", argc, argv, options, 0); in main()
77 while ((rc = poptGetNextOpt(optCon)) > 0) { in main()
78 char * optArg = poptGetOptArg(optCon); in main()
86 poptBadOption(optCon, POPT_BADOPTION_NOALIAS), in main()
94 av = poptGetArgs(optCon); in main()
95 if ((rc = poptBitsArgs(optCon, &avbits)) != 0) in main()
127 optCon = poptFreeContext(optCon); in main()
Dtest2.c51 poptContext optCon; /* context for parsing command-line options */ in main() local
130 optCon = poptGetContext("createuser", argc, argv, optionsTable, 0); in main()
131 poptReadConfigFile(optCon, rcfile ); in main()
134 poptGetNextOpt(optCon); in main()
136 optCon = poptFreeContext(optCon); in main()