如何传递布尔参数以深入研究 VS Code?

How to pass boolean argument to delve in VS Code?

我正在尝试传递参数以通过 VS Code 进行深入研究,但它不起作用。

这是通过 delve 将参数传递给 go 程序的方法:

dlv debug github.com/docker/swarm -- create

我在 launch.json 中尝试了许多不同的解决方案:

"args": [
    "--",
    "create"
]
"args": [
    "--create"
]
"args": [
    "create"
]

经过多次尝试,我找到了正确的:

"args": [
    "--create",
    "true"
]