From 19bc891c2244c63ed72987b8c74a19320a3e005a Mon Sep 17 00:00:00 2001 From: Thomas Goettlicher Date: Mon, 23 Jul 2007 12:34:24 +0000 Subject: [PATCH] Added "xml-updates" to help command --- src/zypper.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/zypper.cc b/src/zypper.cc index 17cc1fc..6455c8b 100644 --- a/src/zypper.cc +++ b/src/zypper.cc @@ -553,6 +553,20 @@ int one_command(const ZypperCommand & command, int argc, char **argv) "This command has no additional options.\n" ); } + else if (command == ZypperCommand::XML_LIST_UPDATES_PATCHES) { + static struct option xml_updates_options[] = { + {"help", no_argument, 0, 'h'}, + {0, 0, 0, 0} + }; + specific_options = xml_updates_options; + specific_help = _( + "xml-updates\n" + "\n" + "'xml-updates' - Show updates and patches in xml format\n" + "\n" + "This command has no additional options.\n" + ); + } parsed_opts copts = parse_options (argc, argv, specific_options); if (copts.count("_unknown")) @@ -1085,6 +1099,9 @@ int one_command(const ZypperCommand & command, int argc, char **argv) // -----------------( xml list updates and patches )------------------------ else if (command == ZypperCommand::XML_LIST_UPDATES_PATCHES) { + + if (ghelp) { cout << specific_help << endl; return !ghelp; } + cond_init_target (); init_repos (); cond_load_resolvables(); -- 2.7.4