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

Function _fmt_flags

explainshell/diff.py:53–57  ·  view source on GitHub ↗
(opt: object)

Source from the content-addressed store, hash-verified

51
52
53def _fmt_flags(opt: object) -> str:
54 parts = list(opt.short) + list(opt.long) # type: ignore[union-attr]
55 if not parts:
56 return f"(positional: {opt.positional})" # type: ignore[union-attr]
57 return "[" + ", ".join(parts) + "]"
58
59
60def compare_manpages(

Callers 2

compare_manpagesFunction · 0.85
format_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected