From 70d89c2cf7bc52e1c6d9505e44649b3ef1220c0c Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 8 Nov 2018 10:23:43 +0100 Subject: masterkey.pl: Add missing check for required option Signed-off-by: Florian Pritz --- masterkey.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/masterkey.pl b/masterkey.pl index 41a167c..dca2c93 100755 --- a/masterkey.pl +++ b/masterkey.pl @@ -1,6 +1,5 @@ #!/usr/bin/perl -use warnings; -use strict; +use strictures; use v5.10; use Data::Dumper; @@ -86,6 +85,7 @@ on behalf of {$sender_name} ({$sender_key}) # TODO: print all errors at once die "Error: --from option is required but not set\n" if not $opts{from}; + die "Error: --from-address option is required but not set\n" if not $opts{from-address}; die "Error: --tokenfile option is required but not set\n" if not $opts{tokenfile}; die "Error: no or invalid command\n" unless $templates{$command}; -- cgit v1.2.3-24-g4f1b