{
  "name": "pageres",
  "description": "Capture website screenshots",
  "options": [
    {
      "names": [
        "--verbose",
        "-v"
      ],
      "description": "Verbose output to see errors if you need to troubleshoot"
    },
    {
      "names": [
        "--crop",
        "-c"
      ],
      "description": "Crop to the set height",
      "exclusiveOn": [
        "--no-crop"
      ]
    },
    {
      "names": [
        "--delay",
        "-d"
      ],
      "description": "Delay screenshot capture",
      "args": [
        {
          "name": "time"
        }
      ]
    },
    {
      "names": [
        "--filename"
      ],
      "description": "Custom filename",
      "args": [
        {
          "name": "template",
          "description": "--filename='<%= date %> - <%= url %>'"
        }
      ]
    },
    {
      "names": [
        "--overwrite"
      ],
      "description": "Overwrite destination file if it exists. Defaults to appending (n) to the file name if --overwrite is not set"
    },
    {
      "names": [
        "--selector"
      ],
      "description": "Capture DOM element",
      "args": [
        {
          "name": "element"
        }
      ]
    },
    {
      "names": [
        "--hide"
      ],
      "description": "Hide DOM element. Can be set multiple times",
      "args": [
        {
          "name": "element"
        }
      ]
    },
    {
      "names": [
        "--no-crop"
      ],
      "description": "Override a global crop option within a group",
      "exclusiveOn": [
        "--crop",
        "-c"
      ]
    },
    {
      "names": [
        "--css"
      ],
      "description": "Apply custom CSS to the webpage. Specify some CSS or the path to a CSS file",
      "args": [
        {
          "name": "string",
          "template": "filepaths"
        }
      ]
    },
    {
      "names": [
        "--cookie"
      ],
      "description": "Browser cookie. Can be set multiple times",
      "args": [
        {
          "name": "cookie"
        }
      ]
    },
    {
      "names": [
        "--header"
      ],
      "description": "Custom HTTP request header. Can be set multiple times",
      "args": [
        {
          "name": "header"
        }
      ]
    },
    {
      "names": [
        "--username"
      ],
      "description": "Username for HTTP auth",
      "args": [
        {
          "name": "username"
        }
      ]
    },
    {
      "names": [
        "--password"
      ],
      "description": "Password for HTTP auth",
      "args": [
        {
          "name": "password"
        }
      ]
    },
    {
      "names": [
        "--scale"
      ],
      "description": "Scale webpage n of times",
      "args": [
        {
          "name": "number"
        }
      ]
    },
    {
      "names": [
        "--format"
      ],
      "description": "Image format. Either png (default) or jpg",
      "args": [
        {
          "name": "format",
          "suggestions": [
            "png",
            "jpg"
          ]
        }
      ]
    },
    {
      "names": [
        "--user-agent"
      ],
      "description": "Custom user agent",
      "args": [
        {
          "name": "string"
        }
      ]
    },
    {
      "names": [
        "--transparent"
      ],
      "description": "Set background color to transparent instead of white if no background is set"
    },
    {
      "names": [
        "--darkMode"
      ],
      "description": "Emulate preference of dark color scheme"
    }
  ],
  "args": [
    {
      "name": "url | filepath",
      "isVariadic": true,
      "template": "filepaths"
    },
    {
      "name": "resolution",
      "isVariadic": true
    }
  ]
}
