From ff0830c1286634ba1a86bfb6606c3a474dbc0bb7 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Tue, 9 Mar 2021 18:27:16 +0100 Subject: [PATCH] Bugfixes in configuration console argument handling --- src/cpl/configuration/console_argument.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cpl/configuration/console_argument.py b/src/cpl/configuration/console_argument.py index 0b14e563..84b37b35 100644 --- a/src/cpl/configuration/console_argument.py +++ b/src/cpl/configuration/console_argument.py @@ -1,11 +1,11 @@ class ConsoleArgument: - def __init__(self, token: str, name: str, aliases: list[str], value_token: str, arg_types: list['ConsoleArgument'] = None): + def __init__(self, token: str, name: str, aliases: list[str], value_token: str, console_arguments: list['ConsoleArgument'] = None): self._token = token self._name = name self._aliases = aliases self._value_token = value_token - self._arg_types = arg_types + self._console_arguments = console_arguments @property def token(self) -> str: @@ -24,5 +24,5 @@ class ConsoleArgument: return self._value_token @property - def arg_types(self) -> list['ConsoleArgument']: - return self._arg_types + def console_arguments(self) -> list['ConsoleArgument']: + return self._console_arguments