diff options
-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 |