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

Function _opt

tests/extraction/test_postprocess.py:18–26  ·  view source on GitHub ↗
(
    text: str = "",
    short: list[str] | None = None,
    long: list[str] | None = None,
    has_argument: bool = False,
)

Source from the content-addressed store, hash-verified

16
17
18def _opt(
19 text: str = "",
20 short: list[str] | None = None,
21 long: list[str] | None = None,
22 has_argument: bool = False,
23) -> Option:
24 return Option(
25 text=text, short=short or [], long=long or [], has_argument=has_argument
26 )
27
28
29class TestDedupOptions:

Calls 1

OptionClass · 0.90

Tested by

no test coverage detected