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

Class ParseError

invoke/exceptions.py:191–204  ·  view source on GitHub ↗

An error arising from the parsing of command-line flags/arguments. Ambiguous input, invalid task names, invalid flags, etc. .. versionadded:: 1.0

Source from the content-addressed store, hash-verified

189
190
191class ParseError(Exception):
192 """
193 An error arising from the parsing of command-line flags/arguments.
194
195 Ambiguous input, invalid task names, invalid flags, etc.
196
197 .. versionadded:: 1.0
198 """
199
200 def __init__(
201 self, msg: str, context: Optional["ParserContext"] = None
202 ) -> None:
203 super().__init__(msg)
204 self.context = context
205
206
207class Exit(Exception):

Callers 4

parse_cleanupMethod · 0.85
print_completion_scriptFunction · 0.85
check_ambiguityMethod · 0.85
errorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…