---
name: "XMLTV::PreferredMethod"
section: "3pm"
platform: "linux"
package: "libxmltv-perl"
version: "1.4.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/XMLTV::PreferredMethod"
---

# XMLTV::PreferredMethod(3pm)

Adds a preferredmethod argument to XMLTV grabbers

## NAME

XMLTV::PreferredMethod - Adds a preferredmethod argument to XMLTV grabbers

## DESCRIPTION

Add a --preferredmethod argument to your program, eg

```
  use XMLTV::PreferredMethod 'allatonce';
```

If a --preferredmethod parameter is supplied on the command-line, it will be caught already by the "use" statement, the string supplied in the use-line will be printed to STDOUT and the program will exit.

Don't forget to announce the preferredmethod capability as well.

## SEE ALSO

XMLTV::Options, XMLTV::Capabilities.
