{
  "description": "Send a test SMTP transaction with Swaks. Proxy, XCLIENT, pipe/socket transports, DATA templates and TLS verification details are left out.",
  "options": [
    {
      "names": [
        "--to",
        "-t"
      ],
      "description": "Comma-separated recipient addresses.",
      "args": {
        "name": "to",
        "description": "Comma-separated recipient addresses.",
        "isOptional": false
      }
    },
    {
      "names": [
        "--from",
        "-f"
      ],
      "description": "Envelope sender",
      "args": {
        "name": "from",
        "isOptional": false
      }
    },
    {
      "names": [
        "--server",
        "-s"
      ],
      "description": "Host or IP, optionally host:port.",
      "args": {
        "name": "server",
        "description": "Host or IP, optionally host:port.",
        "isOptional": false
      }
    },
    {
      "names": [
        "--port",
        "-p"
      ],
      "description": "Port",
      "args": {
        "name": "port",
        "isOptional": false
      }
    },
    {
      "names": [
        "--protocol"
      ],
      "description": "Protocol",
      "args": {
        "name": "protocol",
        "isOptional": false,
        "suggestions": [
          {
            "name": "SMTP",
            "description": "SMTP"
          },
          {
            "name": "ESMTP",
            "description": "ESMTP"
          },
          {
            "name": "LMTP",
            "description": "LMTP"
          }
        ]
      }
    },
    {
      "names": [
        "-tls"
      ],
      "description": "Require STARTTLS"
    },
    {
      "names": [
        "--tls-on-connect",
        "-tlsc"
      ],
      "description": "TLS on connect"
    },
    {
      "names": [
        "--auth",
        "-a"
      ],
      "description": "Try authentication with the user and password below."
    },
    {
      "names": [
        "--auth-user",
        "-au"
      ],
      "description": "Auth user",
      "args": {
        "name": "auth_user",
        "isOptional": false
      }
    },
    {
      "names": [
        "--auth-password",
        "-ap"
      ],
      "description": "Visible in shell history; prefer leaving it unset so Swaks prompts.",
      "args": {
        "name": "auth_password",
        "description": "Visible in shell history; prefer leaving it unset so Swaks prompts.",
        "isOptional": false
      }
    },
    {
      "names": [
        "--header"
      ],
      "description": "Header and data, e.g. Subject: hello.",
      "args": {
        "name": "header",
        "description": "Header and data, e.g. Subject: hello.",
        "isOptional": false
      }
    },
    {
      "names": [
        "--body"
      ],
      "description": "Body",
      "args": {
        "name": "body",
        "isOptional": false
      }
    },
    {
      "names": [
        "--attach"
      ],
      "description": "Attachment",
      "args": {
        "name": "attach",
        "isOptional": false,
        "template": "filepaths"
      }
    },
    {
      "names": [
        "--quit-after",
        "-q"
      ],
      "description": "Stop after",
      "args": {
        "name": "quit_after",
        "isOptional": false
      }
    },
    {
      "names": [
        "--suppress-data",
        "-n"
      ],
      "description": "Summarise DATA"
    }
  ],
  "name": "swaks"
}
