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

Function _option_key

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

Source from the content-addressed store, hash-verified

45
46
47def _option_key(opt: object) -> tuple:
48 if opt.short or opt.long: # type: ignore[union-attr]
49 return (tuple(sorted(opt.short)), tuple(sorted(opt.long))) # type: ignore[union-attr]
50 return ("positional", opt.positional) # type: ignore[union-attr]
51
52
53def _fmt_flags(opt: object) -> str:

Callers 2

compare_manpagesFunction · 0.85
format_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected