18 static const char *
name = NULL;
20 static const char *
file = NULL;
23 { NULL,
'n', POPT_ARG_STRING, &
name,
'n', NULL, NULL},
24 { NULL,
'f', POPT_ARG_STRING, &
file,
'f', NULL, NULL},
25 { 0, 0, 0, 0, 0, NULL, NULL}
34 const char ** argv = NULL;
36 poptContext optCon = NULL;
43 if ((rc = poptParseArgvString(spec->
line, &argc, &argv))) {
45 spec->
lineNum, poptStrerror(rc));
50 optCon = poptGetContext(NULL, argc, argv,
optionsTable, 0);
51 while ((arg = poptGetNextOpt(optCon)) > 0) {
60 poptBadOption(optCon, POPT_BADOPTION_NOALIAS),
66 if (poptPeekArg(optCon)) {
69 name = poptGetArg(optCon);
71 if (poptPeekArg(optCon)) {
117 #if defined(RPM_VENDOR_MANDRIVA)
126 optCon = poptFreeContext(optCon);