On Tue, Jul 26, 2011 at 11:43:35 +0200, Nikola Pajkovsky wrote:
+ OPT_list_events = 1 << 0,
+ OPT_run_event = 1 << 1,
+ OPT_analyze = 1 << 2,
+ OPT_report = 1 << 3,
+ OPT_version = 1 << 4,
+ OPT_delete = 1 << 5,
+ OPTMASK_op =
OPT_list_events|OPT_run_event|OPT_analyze|OPT_report|OPT_version,
+ OPTMASK_need_arg = OPT_delete|OPT_run_event|OPT_analyze|OPT_report,
+ OPT_y = 1 << 6,
+ OPT_o = 1 << 7,
+ OPT_v = 1 << 8,
+ OPT_s = 1 << 9,
+ OPT_p = 1 << 10,
};
/* Keep enum above and order of options below in sync! */
struct options program_options[] = {
/* short_name long_name value parameter_name help */
- OPT_BOOL( 'l', "list" , NULL,
_("List not yet reported problems, or all with -f")),
- OPT_LIST( 'D', NULL , &D_list, "BASE_DIR",
_("Directory to list problems from (default: -D $HOME/.abrt/spool -D
"DEBUG_DUMPS_DIR")")),
- OPT_BOOL( 'i', "info" , NULL,
_("Print information about DUMP_DIR (detailed with -f)")),
OPT_OPTSTRING('L', NULL , &pfx, "PREFIX",
_("List possible events [which start with PREFIX]")),
OPT_STRING( 'e', NULL , &event_name, "EVENT",
_("Run EVENT on DUMP_DIR")),
OPT_BOOL( 'a', "analyze", NULL,
_("Run analyze event(s) on DUMP_DIR")),
OPT_BOOL( 'r', "report" , NULL,
_("Analyze and report problem data in DUMP_DIR")),
OPT_BOOL( 'd', "delete" , NULL,
_("Remove DUMP_DIR")),
OPT_BOOL( 'V', "version", NULL,
_("Display version and exit")),
- OPT_BOOL( 'f', "full" , NULL,
_("Full listing")),
OPT_BOOL( 'y', "always" , NULL,
_("Noninteractive: don't ask questions, assume 'yes'")),
Also, the bitmasks and the list of options are not in the same order as
the comment suggests, (probably) resulting in defunct --version option.