MCPcopy Index your code
hub / github.com/pyinvoke/invoke / translate_underscores

Function translate_underscores

invoke/parser/context.py:12–13  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

10
11
12def translate_underscores(name: str) -> str:
13 return name.lstrip("_").rstrip("_").replace("_", "-")
14
15
16def to_flag(name: str) -> str:

Callers 2

arg_optsMethod · 0.85
to_flagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…