MCPcopy Create free account
hub / github.com/idank/explainshell / _opt_with_lines

Function _opt_with_lines

tests/extraction/test_postprocess.py:338–349  ·  view source on GitHub ↗
(
    start: int,
    end: int,
    short: list[str] | None = None,
    long: list[str] | None = None,
)

Source from the content-addressed store, hash-verified

336
337
338def _opt_with_lines(
339 start: int,
340 end: int,
341 short: list[str] | None = None,
342 long: list[str] | None = None,
343) -> Option:
344 return Option(
345 text="desc",
346 short=short or [f"-{chr(97 + start % 26)}"],
347 long=long or [],
348 meta={"lines": [start, end]},
349 )
350
351
352class TestSanityCheckLineSpans:

Callers 2

Calls 1

OptionClass · 0.90

Tested by

no test coverage detected