diff options
author | Guillermo Ramos | 2019-06-21 10:06:20 +0200 |
---|---|---|
committer | Guillermo Ramos | 2019-06-21 10:06:20 +0200 |
commit | 8c2e72265bd073f8f07ebca2218f43446dd5df7d (patch) | |
tree | 00c66aa8e59fc4d04a6fc7ad1a032321171fac66 | |
parent | 2ebb9c0699eaa5bdbb91e132d1a7bfe48b9cf36b (diff) | |
download | tgutils-8c2e72265bd073f8f07ebca2218f43446dd5df7d.tar.gz |
Support --version
-rwxr-xr-x | tgsend | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |