{
  "name": "wing",
  "subcommands": [
    {
      "name": "run",
      "description": "Runs a Wing executable in the Wing Console",
      "options": [
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Display help for command"
        }
      ],
      "args": [
        {
          "name": "executable",
          "description": "Executable .wx file"
        }
      ]
    },
    {
      "name": "compile",
      "description": "Compiles a Wing program",
      "options": [
        {
          "names": [
            "-o",
            "--out-dir"
          ],
          "description": "Output directory",
          "takes_arg": true,
          "arg": {
            "name": "out-dir"
          }
        },
        {
          "names": [
            "-t",
            "--target"
          ],
          "description": "Target platform (options: 'tf-aws', 'sim')",
          "takes_arg": true,
          "arg": {
            "name": "target"
          }
        },
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Display help for command"
        }
      ],
      "args": [
        {
          "name": "entrypoint",
          "description": "Program .w entrypoint"
        }
      ]
    },
    {
      "name": "upgrade",
      "description": "Upgrades the Wing toolchain to the latest version",
      "options": [
        {
          "names": [
            "-h",
            "--help"
          ],
          "description": "Display help for command"
        }
      ]
    },
    {
      "name": "help",
      "description": "Display help for command",
      "args": [
        {
          "name": "command"
        }
      ]
    }
  ]
}
