Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/celery/celery
/ format_opt
Function
format_opt
celery/apps/multi.py:54–59 ·
view source on GitHub ↗
(opt, value)
Source
from the content-addressed store, hash-verified
52
53
54
def
format_opt(opt, value):
55
if
not value:
56
return
opt
57
if
opt.startswith(
'--'
):
58
return
f
'{opt}={value}'
59
return
f
'{opt} {value}'
60
61
62
def
_kwargs_to_command_line(kwargs):
Callers
2
test_format_opt
Method · 0.90
_prepare_argv
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_format_opt
Method · 0.72