4 #include <rpm/rpmcli.h>
8 #if !defined(__GLIBC__) && !defined(__APPLE__)
21 {
"initdb",
'\0', (POPT_ARG_VAL|POPT_ARGFLAG_OR), &mode,
MODE_INITDB,
22 N_(
"initialize database"), NULL},
23 {
"rebuilddb",
'\0', (POPT_ARG_VAL|POPT_ARGFLAG_OR), &mode,
MODE_REBUILDDB,
24 N_(
"rebuild database inverted lists from installed package headers"),
26 {
"verifydb",
'\0', (POPT_ARG_VAL|POPT_ARGFLAG_OR|POPT_ARGFLAG_DOC_HIDDEN),
32 { NULL,
'\0', POPT_ARG_INCLUDE_TABLE,
dbOptsTable, 0,
33 N_(
"Database options:"), NULL },
35 N_(
"Common options for all rpm modes and executables:"), NULL },
42 int main(
int argc,
char *argv[])
44 int ec = EXIT_FAILURE;
45 poptContext optCon =
rpmcliInit(argc, argv, optionsTable);
48 if (argc < 2 || poptPeekArg(optCon)) {
70 argerror(
_(
"only one major mode may be specified"));