Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
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
12
def
translate_underscores(name: str) -> str:
13
return
name.lstrip(
"_"
).rstrip(
"_"
).replace(
"_"
,
"-"
)
14
15
16
def
to_flag(name: str) -> str:
Callers
2
arg_opts
Method · 0.85
to_flag
Function · 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…