From 8c2e72265bd073f8f07ebca2218f43446dd5df7d Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Fri, 21 Jun 2019 10:06:20 +0200 Subject: Support --version --- tgsend | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tgsend b/tgsend index 8fbb59d..d4cf322 100755 --- a/tgsend +++ b/tgsend @@ -7,7 +7,9 @@ # Dependencies: HTTP-Message, JSON ################################################################################ -use Getopt::Long; +$main::VERSION = "0.1.0"; + +use Getopt::Long qw(:config auto_version); use Pod::Usage qw; use LWP::UserAgent; use Data::Dumper; @@ -85,6 +87,7 @@ tgsend [options] [chatid1 chatid2 ...] =head1 OPTIONS + --version Show version --pretend | -p Do not actually do anything --verbose | -v Show more information (including help) --token | -t Bot token (read from environment otherwise) -- cgit v1.2.3