From 31337265d89ced9363a68290f14170a96d05db9f Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 3 Dec 2015 16:57:35 +0100 Subject: [PATCH] + don't check first argument (connector compat) --- centreon/plugins/alternative/Getopt.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon/plugins/alternative/Getopt.pm b/centreon/plugins/alternative/Getopt.pm index 1061afbfa..ceb1f595b 100644 --- a/centreon/plugins/alternative/Getopt.pm +++ b/centreon/plugins/alternative/Getopt.pm @@ -89,7 +89,7 @@ sub GetOptions { splice @ARGV, $i, 1; $num_args--; } else { - warn "argument $ARGV[$i] alone" if ($warn_message == 1); + warn "argument $ARGV[$i] alone" if ($warn_message == 1 && $i != 0); $i++; } }