MCPcopy Index your code
hub / github.com/pyinvoke/invoke / parse_core_args

Method parse_core_args

invoke/program.py:688–700  ·  view source on GitHub ↗

Filter out core args, leaving any tasks or their args for later. Sets ``self.core`` to the `.ParseResult` from this step. .. versionadded:: 1.0

(self)

Source from the content-addressed store, hash-verified

686 self.list_tasks()
687
688 def parse_core_args(self) -> None:
689 """
690 Filter out core args, leaving any tasks or their args for later.
691
692 Sets ``self.core`` to the `.ParseResult` from this step.
693
694 .. versionadded:: 1.0
695 """
696 debug("Parsing initial context (core args)")
697 parser = Parser(initial=self.initial_context, ignore_unknown=True)
698 self.core = parser.parse_argv(self.argv[1:])
699 msg = "Core-args parse result: {!r} & unparsed: {!r}"
700 debug(msg.format(self.core, self.core.unparsed))
701
702 def load_collection(self) -> None:
703 """

Callers 1

parse_coreMethod · 0.95

Calls 2

parse_argvMethod · 0.95
ParserClass · 0.85

Tested by

no test coverage detected