{
  "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"
    },
    {
      "names": [
        "--delay",
        "-d"
      ],
      "description": "Delay screenshot capture",
      "takes_arg": true,
      "arg": {
        "name": "time"
      }
    },
    {
      "names": [
        "--filename"
      ],
      "description": "Custom filename",
      "takes_arg": true,
      "arg": {
        "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",
      "takes_arg": true,
      "arg": {
        "name": "element"
      }
    },
    {
      "names": [
        "--hide"
      ],
      "description": "Hide DOM element. Can be set multiple times",
      "takes_arg": true,
      "arg": {
        "name": "element"
      }
    },
    {
      "names": [
        "--no-crop"
      ],
      "description": "Override a global crop option within a group"
    },
    {
      "names": [
        "--css"
      ],
      "description": "Apply custom CSS to the webpage. Specify some CSS or the path to a CSS file",
      "takes_arg": true,
      "arg": {
        "name": "string",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "--cookie"
      ],
      "description": "Browser cookie. Can be set multiple times",
      "takes_arg": true,
      "arg": {
        "name": "cookie"
      }
    },
    {
      "names": [
        "--header"
      ],
      "description": "Custom HTTP request header. Can be set multiple times",
      "takes_arg": true,
      "arg": {
        "name": "header"
      }
    },
    {
      "names": [
        "--username"
      ],
      "description": "Username for HTTP auth",
      "takes_arg": true,
      "arg": {
        "name": "username"
      }
    },
    {
      "names": [
        "--password"
      ],
      "description": "Password for HTTP auth",
      "takes_arg": true,
      "arg": {
        "name": "password"
      }
    },
    {
      "names": [
        "--scale"
      ],
      "description": "Scale webpage n of times",
      "takes_arg": true,
      "arg": {
        "name": "number"
      }
    },
    {
      "names": [
        "--format"
      ],
      "description": "Image format. Either png (default) or jpg",
      "takes_arg": true,
      "arg": {
        "name": "format",
        "suggestions": [
          "png",
          "jpg"
        ]
      }
    },
    {
      "names": [
        "--user-agent"
      ],
      "description": "Custom user agent",
      "takes_arg": true,
      "arg": {
        "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",
      "is_variadic": true,
      "template": "filepaths"
    },
    {
      "name": "resolution",
      "is_variadic": true
    }
  ]
}
