- doesn't work report-newt <dump_dir> just prints help
On 06/28/2012 04:45 PM, Jakub Filak wrote:
- report-only command line option removed Signed-off-by: Jakub Filak <[email protected]> --- src/report-newt/report-newt.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/report-newt/report-newt.c b/src/report-newt/report-newt.c index 034beac..97bc8e6 100644 --- a/src/report-newt/report-newt.c +++ b/src/report-newt/report-newt.c @@ -384,13 +384,11 @@ int main(int argc, char **argv) "newt tool to report problem saved in specified DIR" ); enum { - OPT_o = 1 << 0, // report only - OPT_r = 1 << 1, - OPT_V = 1 << 2, + OPT_r = 1 << 0, + OPT_V = 1 << 1, }; /* Keep enum above and order of options below in sync! */ struct options program_options[] = { - OPT_BOOL('o', "report-only", NULL, _("Skip analyze steps, go through report steps only")), OPT_BOOL('d', "delete", NULL, _("Remove DIR after reporting")), OPT_BOOL('V', "version", NULL, _("Display version and exit")), OPT_END() @@ -398,8 +396,7 @@ int main(int argc, char **argv) unsigned opts = parse_opts(argc, argv, program_options, program_usage_string); argv += optind; /* zero or >1 arguments with -o, or >0 arguments with -V */ - if (!(opts & (OPT_o | OPT_V)) || - ((opts & OPT_o) && (!argv[0] || argv[1])) || + if (!(opts & (OPT_V)) || ((opts & OPT_V) && argv[0])) show_usage_and_die(program_usage_string, program_options);
