This commit is contained in:
2025-03-12 13:01:15 +03:00
parent 0f4f48555e
commit 09c40978a1
5 changed files with 12 additions and 14 deletions
-1
View File
@@ -1,4 +1,3 @@
from pprint import pprint
from typing import Callable
from inspect import getfullargspec
import re
+1 -1
View File
@@ -1,4 +1,4 @@
from argenta.command.flag.entity import Flag
from argenta.command.flag import Flag
class FlagsGroup:
+1 -1
View File
@@ -23,7 +23,7 @@ class Router:
self._command_entities: list[dict[str, Callable[[], None] | Command]] = []
self._ignore_command_register: bool = False
self._not_valid_flag_handler: Callable[[Flag], None] = lambda flag: print(f"Undefined or incorrect input flag: '{flag.get_string_entity()} {flag.get_value()}'")
self._not_valid_flag_handler: Callable[[Flag], None] = lambda flag: print(f"Undefined or incorrect input flag: {flag.get_string_entity()} {flag.get_value() if flag.get_value() else ''}")
def command(self, command: Command) -> Callable[[Any], Any]: