From dbce4db147d7136458bbab1282ff563eb11d79c6 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Sat, 27 Jul 2024 13:19:29 +0200 Subject: [PATCH] version 0.1 Signed-off-by: Alarig Le Lay --- check_domain_expiration_rdap.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/check_domain_expiration_rdap.py b/check_domain_expiration_rdap.py index 06aac5d..ab173b8 100755 --- a/check_domain_expiration_rdap.py +++ b/check_domain_expiration_rdap.py @@ -6,11 +6,15 @@ import argparse import datetime import logging +import os import requests import nagiosplugin import requests_cache +__script__ = os.path.basename(__file__) +__version__ = '0.1' + _log = logging.getLogger('nagiosplugin') # cache session for json and csv storage @@ -214,7 +218,10 @@ def main(): '-s', '--server', default=None, help='Specify the RDAP base URL (eg. https://rdap.nic.bzh/)' ) argp.add_argument( - '-v', '--verbose', action='count', default=0, help='be more verbose' + '-v', '--verbose', action='count', default=0, help='Be more verbose, can go up to -vvv' + ) + argp.add_argument( + '--version', action='version', version=f'{__script__} {__version__}', help='Print version' ) argp.add_argument( '-d', '--debug', action='count', default=0,