Internal function to parse CLI arguments of both the function and its output function.
(
cls,
func: DecoratorCallable,
cmd: str, args: List[str]
)
| 3659 | |
| 3660 | @classmethod |
| 3661 | def _parseallargs( |
| 3662 | cls, |
| 3663 | func: DecoratorCallable, |
| 3664 | cmd: str, args: List[str] |
| 3665 | ) -> Tuple[List[str], Dict[str, Literal[True]], Dict[str, Literal[True]]]: |
| 3666 | """ |
| 3667 | Internal function to parse CLI arguments of both the function |
| 3668 | and its output function. |
| 3669 | """ |
| 3670 | args, kwargs = cls._parsekwargs(func, args) |
| 3671 | outkwargs: Dict[str, Literal[True]] = {} |
| 3672 | if cmd in cls.commands_output: |
| 3673 | args, outkwargs = cls._parsekwargs(cls.commands_output[cmd], args) |
| 3674 | return args, kwargs, outkwargs |
| 3675 | |
| 3676 | @classmethod |
| 3677 | def addcommand( |
no test coverage detected