From: Christian Van Wambeke Date: Tue, 30 Oct 2018 14:56:02 +0000 (+0100) Subject: add 'sat config --products' as 'sat config --info' X-Git-Tag: 5.2.0~9^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3bdf09c30270828e289605794dfed32eda5907b0;p=tools%2Fsat.git add 'sat config --products' as 'sat config --info' --- diff --git a/commands/config.py b/commands/config.py index 748a11b..768a2f2 100644 --- a/commands/config.py +++ b/commands/config.py @@ -40,6 +40,8 @@ parser.add_option('e', 'edit', 'boolean', 'edit', _("Optional: edit the product configuration file.")) parser.add_option('i', 'info', 'list2', 'info', _("Optional: get information on product(s). This option accepts a comma separated list.")) +parser.add_option('p', 'products', 'list2', 'products', + _("Optional: same as --info, for convenience.")) parser.add_option('l', 'list', 'boolean', 'list', _("Optional: list all available applications.")) parser.add_option('', 'show_patchs', 'boolean', 'show_patchs', @@ -943,6 +945,11 @@ def run(args, runner, logger): break # case : give information about the product(s) in parameter + if options.products: + if options.info is not None: + logger.warning('options.products %s overrides options.info %s' % (options.products, options.info)) + options.info = options.products + if options.info: # DBG.write("products", sorted(runner.cfg.APPLICATION.products.keys()), True) src.check_config_has_application(runner.cfg)