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

# XMLTV::Version(3pm)

Adds a --version argument to XMLTV grabbers

## NAME

XMLTV::Version - Adds a --version argument to XMLTV grabbers

## DESCRIPTION

Add a --version argument to your program, eg

```
  use XMLTV::Version '1.2';
```

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

It is best to put the use XMLTV::Version statement before other module imports, so that even if they fail --version will still work.

## SEE ALSO

XMLTV::Options
