From 88d8f4b9b4a50629d4dc4e1b33a26be0a2559616 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Mon, 6 Jun 2016 16:42:20 +0200 Subject: [PATCH] Add info option to config command --- commands/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/config.py b/commands/config.py index e6f59ee..13cc453 100644 --- a/commands/config.py +++ b/commands/config.py @@ -421,7 +421,8 @@ class ConfigManager: def check_path(path, ext=[]): # check if file exists if not os.path.exists(path): - return "'%s'" % path + " " + src.printcolors.printcError(_("** not found")) + return "'%s'" % path + " " + src.printcolors.printcError(_( + "** not found")) # check extension if len(ext) > 0: @@ -648,6 +649,7 @@ def run(args, runner, logger): # case : give information about the product in parameter elif options.info: + src.check_config_has_application(runner.cfg) if options.info in runner.cfg.APPLICATION.products: show_product_info(runner.cfg, options.info, logger) return -- 2.39.2