in pytest_rally/rally.py [0:0]
def format_cli_opt(opt, val):
opt = re.sub("_", "-", opt)
if val is True:
return f'--{opt}'
elif isinstance(val, dict):
val = ",".join([f"{k}:{v}" for k, v in val.items()])
return f'--{opt}="{val}"'