aboutsummaryrefslogtreecommitdiff
path: root/tgsend
diff options
context:
space:
mode:
authorGuillermo Ramos2019-06-21 10:06:20 +0200
committerGuillermo Ramos2019-06-21 10:06:20 +0200
commit8c2e72265bd073f8f07ebca2218f43446dd5df7d (patch)
tree00c66aa8e59fc4d04a6fc7ad1a032321171fac66 /tgsend
parent2ebb9c0699eaa5bdbb91e132d1a7bfe48b9cf36b (diff)
downloadtgutils-8c2e72265bd073f8f07ebca2218f43446dd5df7d.tar.gz
Support --version
Diffstat (limited to 'tgsend')
-rwxr-xr-xtgsend5
1 files changed, 4 insertions, 1 deletions
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<pod2usage>;
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)