MCPcopy Index your code
hub / github.com/idank/explainshell / _option_debug

Function _option_debug

explainshell/matcher.py:52–62  ·  view source on GitHub ↗

Build a debug_info dict for an option-backed match.

(option)

Source from the content-addressed store, hash-verified

50
51
52def _option_debug(option):
53 """Build a debug_info dict for an option-backed match."""
54 return {
55 "kind": "option",
56 "short": option.short,
57 "long": option.long,
58 "has_argument": option.has_argument,
59 "positional": option.positional,
60 "prefix": option.prefix,
61 "nested_cmd": option.nested_cmd,
62 }
63
64
65match_word_exp = collections.namedtuple("match_word_exp", "start end kind")

Callers 2

attemptfuzzyMethod · 0.85
_visitwordMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected