diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-11-26 16:18:47 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-11-26 16:18:47 +0100 |
commit | 6929f59be1663e55f204c009ebb4c3b79bf57260 (patch) | |
tree | d35221d7611b5c626695552d34d5c1c75e181948 | |
parent | 34b6373a96b170a9872a5d1a2047c1e349593ef8 (diff) |
Add -V/--version option
-rwxr-xr-x | bin/mqtt-multipub | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/mqtt-multipub b/bin/mqtt-multipub index 2881a2a..c844394 100755 --- a/bin/mqtt-multipub +++ b/bin/mqtt-multipub @@ -15,6 +15,7 @@ my $mqtt_host; GetOptions( 'h|host=s' => \$mqtt_host, + 'V|version' => sub { say "mqtt-multipub version $VERSION"; exit 0 }, ); if ( not defined $mqtt_host or not length($mqtt_host) ) { @@ -132,6 +133,10 @@ character will not be part of the published message. Connect to I<hostname>. Mandatory. +=item B<-V>|B<--version> + +Print mqtt-multipub version. + =back =head1 EXIT STATUS |