\fB-D, --define='\fIMACRO EXPR\fB'\fR
Defines \fIMACRO\fR with value \fIEXPR\fR.
.TP
+\fB--undefine='\fIMACRO\fB'\fR
+Undefines \fIMACRO\fR.
+.TP
\fB-E, --eval='\fIEXPR\fB'\fR
Prints macro expansion of \fIEXPR\fR.
.SS "INSTALL AND UPGRADE OPTIONS"
#define POPT_QUERYTAGS -997
#define POPT_PREDEFINE -996
#define POPT_DBPATH -995
+#define POPT_UNDEFINE -994
static int _debug = 0;
free(s);
break;
}
+ case POPT_UNDEFINE:
+ rpmcliConfigured();
+ if (*arg == '%')
+ arg++;
+ delMacro(NULL, arg);
+ break;
case 'E':
rpmcliConfigured();
{ char *val = rpmExpand(arg, NULL);
{ "define", 'D', POPT_ARG_STRING, 0, 'D',
N_("define MACRO with value EXPR"),
N_("'MACRO EXPR'") },
+ { "undefine", '\0', POPT_ARG_STRING, 0, POPT_UNDEFINE,
+ N_("undefine MACRO"),
+ N_("MACRO") },
{ "eval", 'E', POPT_ARG_STRING, 0, 'E',
N_("print macro expansion of EXPR"),
N_("'EXPR'") },