18 static const char *
name = NULL;
20 static const char *
lang = NULL;
24 { NULL,
'n', POPT_ARG_STRING, &
name,
'n', NULL, NULL},
25 { NULL,
'l', POPT_ARG_STRING, &
lang,
'l', NULL, NULL},
26 { 0, 0, 0, 0, 0, NULL, NULL}
39 const char **argv = NULL;
40 poptContext optCon = NULL;
46 if ((rc = poptParseArgvString(spec->
line, &argc, &argv))) {
48 spec->
lineNum, poptStrerror(rc));
52 optCon = poptGetContext(NULL, argc, argv,
optionsTable, 0);
53 while ((arg = poptGetNextOpt(optCon)) > 0) {
62 poptBadOption(optCon, POPT_BADOPTION_NOALIAS),
67 if (poptPeekArg(optCon)) {
69 name = poptGetArg(optCon);
70 if (poptPeekArg(optCon)) {
131 optCon = poptFreeContext(optCon);