From 7a6b1b361746a77c72d346149c0c94c3aca797d4 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Fri, 29 Nov 2024 13:15:30 +0100 Subject: [PATCH] Revert "Enable to specify multiple config file for config.py" This reverts commit 721b7e14d39ab1ff0c3324302a8e66daec330f25. Signed-off-by: Gabor Mezei --- scripts/mbedtls_framework/config_common.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/mbedtls_framework/config_common.py b/scripts/mbedtls_framework/config_common.py index 0e2f48877..123785d4b 100644 --- a/scripts/mbedtls_framework/config_common.py +++ b/scripts/mbedtls_framework/config_common.py @@ -388,7 +388,7 @@ class ConfigTool(metaclass=ABCMeta): Custom parser options can be added by overriding 'custom_parser_options'. """ - def __init__(self, default_file_path, single_config=True): + def __init__(self, default_file_path): """Create parser for config manipulation tool. :param default_file_path: Default configuration file path @@ -398,7 +398,7 @@ class ConfigTool(metaclass=ABCMeta): Configuration file manipulation tool.""") self.subparsers = self.parser.add_subparsers(dest='command', title='Commands') - self._common_parser_options(default_file_path, single_config) + self._common_parser_options(default_file_path) self.custom_parser_options() self.args = self.parser.parse_args() self.config = Config() # Make the pylint happy @@ -409,17 +409,14 @@ class ConfigTool(metaclass=ABCMeta): subparser = self.subparsers.add_parser(name, help=description) subparser.set_defaults(adapter=function) - def _common_parser_options(self, default_file_path, single_config=True): + def _common_parser_options(self, default_file_path): # pylint: disable=too-many-branches """Common parser options for config manipulation tool.""" self.parser.add_argument( '--file', '-f', - action='store' if single_config else 'append', - help=("""File to read (and modify if requested). Default: {}.""" if single_config else - """Files to read (and modify if requested). Default: {}. - Can be used multiple times to specify more config files.""" - ).format(default_file_path)) + help="""File to read (and modify if requested). Default: {}. + """.format(default_file_path)) self.parser.add_argument( '--force', '-o', action='store_true',