MCPcopy Index your code
hub / github.com/secdev/scapy / _parseallargs

Method _parseallargs

scapy/utils.py:3661–3674  ·  view source on GitHub ↗

Internal function to parse CLI arguments of both the function and its output function.

(
        cls,
        func: DecoratorCallable,
        cmd: str, args: List[str]
    )

Source from the content-addressed store, hash-verified

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(

Callers 2

loopMethod · 0.95
get_completionsMethod · 0.80

Calls 1

_parsekwargsMethod · 0.80

Tested by

no test coverage detected