From 0cf9a0160bd9ebdbefcdf91316d94b447d168741 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 19 Feb 2016 15:27:58 +0100 Subject: [PATCH] + Enhance to have mode display --- centreon/plugins/options.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/centreon/plugins/options.pm b/centreon/plugins/options.pm index 33e8ce3ce..bbbc59b03 100644 --- a/centreon/plugins/options.pm +++ b/centreon/plugins/options.pm @@ -79,9 +79,10 @@ sub display_help { { local *STDOUT; open STDOUT, '>', \$stdout; - pod2usage(-exitval => 'NOEXIT', -input => pod_where({-inc => 1}, $_->{package}), + my $where = pod_where({-inc => 1}, $_->{package}); + pod2usage(-exitval => 'NOEXIT', -input => $where, -verbose => 99, - -sections => $_->{sections}); + -sections => $_->{sections}) if (defined($where)); } $self->{output}->add_option_msg(long_msg => $stdout) if (defined($stdout));