aboutsummaryrefslogtreecommitdiff
path: root/tgsend
diff options
context:
space:
mode:
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)