Version

Langue: en

Version: 2006-11-30 (mandriva - 22/10/07)

Section: 3 (Bibliothèques de fonctions)

NAME

XMLTV::Version

DESCRIPTION

Add a --version argument to your program, eg
   use XMLTV::Version '$Id: Version.pm,v 1.2 2006/11/30 19:13:37 mattiasholmlund Exp $';
 
 

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