summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Monitoring/Plugin/Getopt.pm10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/Monitoring/Plugin/Getopt.pm b/lib/Monitoring/Plugin/Getopt.pm
index feee002..048b0ef 100644
--- a/lib/Monitoring/Plugin/Getopt.pm
+++ b/lib/Monitoring/Plugin/Getopt.pm
@@ -398,14 +398,8 @@ sub arg
398 398
399 # Positional args 399 # Positional args
400 else { 400 else {
401 my @args = validate_pos(@_, 1, 1, 0, 0, 0); 401 my @order = qw(spec help default required label);
402 %args = ( 402 @args{@order} = validate_pos(@_, @params{@order});
403 spec => $args[0],
404 help => $args[1],
405 default => $args[2],
406 required => $args[3],
407 label => $args[4],
408 );
409 } 403 }
410 404
411 # Add to private args arrayref 405 # Add to private args arrayref