{
  "description": "Start a Delve debug session for a package, its tests or a built binary. Attach, core, trace, DAP and redirect options are left out.",
  "name": "dlv",
  "subcommands": [
    {
      "name": "debug",
      "description": "Debug a package",
      "options": [
        {
          "names": [
            "--continue"
          ],
          "description": "Continue on start"
        },
        {
          "names": [
            "--output"
          ],
          "description": "Binary output path",
          "args": {
            "name": "output",
            "isOptional": false,
            "template": "filepaths"
          }
        },
        {
          "names": [
            "--build-flags"
          ],
          "description": "Passed to the Go compiler, e.g. -tags=integration.",
          "args": {
            "name": "build_flags",
            "description": "Passed to the Go compiler, e.g. -tags=integration.",
            "isOptional": false
          }
        },
        {
          "names": [
            "--headless"
          ],
          "description": "Run the debug server only, without a terminal client."
        },
        {
          "names": [
            "--listen",
            "-l"
          ],
          "description": "Listen address",
          "args": {
            "name": "listen",
            "isOptional": false
          }
        },
        {
          "names": [
            "--wd"
          ],
          "description": "Working directory",
          "args": {
            "name": "wd",
            "isOptional": false,
            "template": "folders"
          }
        }
      ],
      "args": [
        {
          "name": "package",
          "description": "Defaults to the main package in the current directory.",
          "isOptional": true
        }
      ]
    },
    {
      "name": "test",
      "description": "Debug tests",
      "options": [
        {
          "names": [
            "--output"
          ],
          "description": "Test binary output path",
          "args": {
            "name": "output",
            "isOptional": false,
            "template": "filepaths"
          }
        },
        {
          "names": [
            "--build-flags"
          ],
          "description": "Passed to the Go compiler, e.g. -tags=integration.",
          "args": {
            "name": "build_flags",
            "description": "Passed to the Go compiler, e.g. -tags=integration.",
            "isOptional": false
          }
        },
        {
          "names": [
            "--headless"
          ],
          "description": "Run the debug server only, without a terminal client."
        },
        {
          "names": [
            "--listen",
            "-l"
          ],
          "description": "Listen address",
          "args": {
            "name": "listen",
            "isOptional": false
          }
        },
        {
          "names": [
            "--wd"
          ],
          "description": "Working directory",
          "args": {
            "name": "wd",
            "isOptional": false,
            "template": "folders"
          }
        }
      ],
      "args": [
        {
          "name": "package",
          "description": "Defaults to the package in the current directory.",
          "isOptional": true
        }
      ]
    },
    {
      "name": "exec",
      "description": "Debug a binary",
      "options": [
        {
          "names": [
            "--continue"
          ],
          "description": "Continue on start"
        },
        {
          "names": [
            "--headless"
          ],
          "description": "Run the debug server only, without a terminal client."
        },
        {
          "names": [
            "--listen",
            "-l"
          ],
          "description": "Listen address",
          "args": {
            "name": "listen",
            "isOptional": false
          }
        },
        {
          "names": [
            "--wd"
          ],
          "description": "Working directory",
          "args": {
            "name": "wd",
            "isOptional": false,
            "template": "folders"
          }
        }
      ],
      "args": [
        {
          "name": "binary",
          "isOptional": true,
          "template": "filepaths"
        }
      ]
    }
  ]
}
