afilipovich / gglsbl

Python client library for Google Safe Browsing API
Apache License 2.0
83 stars 37 forks source link

Command line client --blacklisted-return-code option #46

Closed gjedeer closed 5 years ago

gjedeer commented 5 years ago

I wanted to use the command line client in Nagios. Nagios has a convention where you run the program and it interprets its return code: 0 - OK 1 - WARNING 2 - CRITICAL

I've added an option --blacklisted-return-code so that the user can decide if they want the program to return 1, 2, or some other number, when the URL is found in black list.