Resolved problem with required options

git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@6506 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
Damien Duponchelle 2008-09-11 10:56:31 +00:00
parent dfd2024da8
commit 6885e1703d
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ if (!$opt_H) {
exit $ERRORS{'OK'}; exit $ERRORS{'OK'};
} }
if ($opt_n && !$opt_c && !$opt_w) { if ($opt_n && !$opt_c || !$opt_w) {
print_usage(); print_usage();
exit $ERRORS{'OK'}; exit $ERRORS{'OK'};
} }