Archived
1
0

handle left-over arguments

When left-over arguments were found:
* Do not print the program help.
* Print an info line for Nagios/Icinga, noting that invalid arguments were specified.
This commit is contained in:
Christoph Anton Mitterer 2012-10-09 03:36:28 +02:00
parent e93d7f39e9
commit 5cffc02eba

View File

@ -439,8 +439,7 @@ def main():
(options, args) = parser.parse_args()
if args:
parser.print_help()
sys.exit(UNKNOWN)
end(UNKNOWN, "Invalid arguments specified.")
tester.all_updates = options.all_updates
tester.no_cache_update = options.no_cache_update