Bugfixes in configuration console argument handling

This commit is contained in:
Sven Heidemann 2021-03-09 18:27:16 +01:00
parent c574a44a26
commit ff0830c128

View File

@ -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