For example, I'd like to be able to do this, rather than implement the comparison in a shellscript, as I've done.
check_postgres --action custom_query -w 140000:150000 --query "SELECT current_setting('server_version_num') AS result"
ERROR: Invalid argument for 'warning' option: must be an integer