Fixed command handling

This commit is contained in:
2021-10-26 13:00:16 +02:00
parent 9518d19580
commit e39661a42a
17 changed files with 33 additions and 29 deletions

View File

@@ -86,6 +86,9 @@ class CLI(ApplicationABC):
result = self._configuration.get_configuration(cmd.name)
result_args: list[str] = self._configuration.get_configuration(f'{cmd.name}AdditionalArguments')
is_option = False
if result is None:
continue
for opt in self._options:
if opt == result:
is_option = True
@@ -117,6 +120,7 @@ class CLI(ApplicationABC):
Error.error(f'Expected command')
return
Console.write_line(command, args)
self._command_handler.handle(command, args)
except KeyboardInterrupt:
Console.write_line()

View File

@@ -4,7 +4,7 @@
"Version": {
"Major": "2021",
"Minor": "10",
"Micro": "0.post1"
"Micro": "0.post2"
},
"Author": "Sven Heidemann",
"AuthorEmail": "sven.heidemann@sh-edraft.de",