MCPcopy 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
54def 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
62def _kwargs_to_command_line(kwargs):

Callers 2

test_format_optMethod · 0.90
_prepare_argvMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_format_optMethod · 0.72