diff options
-rwxr-xr-x | bin/mqtt-multipub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mqtt-multipub b/bin/mqtt-multipub index 906a1db..0502b20 100755 --- a/bin/mqtt-multipub +++ b/bin/mqtt-multipub @@ -36,10 +36,10 @@ sub parse_content_string { } for my $arg (@ARGV) { - if ( $arg eq '--publish' ) { + if ( $arg eq 'publish' ) { $retain = 0; } - elsif ( $arg eq '--retain' ) { + elsif ( $arg eq 'retain' ) { $retain = 1; } elsif ( $arg =~ m{ ^ (?<topic> [^=]+) = (?<content> .*) $ }x ) { |