version 0.1
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
eacd1368d6
commit
dbce4db147
|
@ -6,11 +6,15 @@
|
||||||
import argparse
|
import argparse
|
||||||
import datetime
|
import datetime
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
import nagiosplugin
|
import nagiosplugin
|
||||||
import requests_cache
|
import requests_cache
|
||||||
|
|
||||||
|
__script__ = os.path.basename(__file__)
|
||||||
|
__version__ = '0.1'
|
||||||
|
|
||||||
_log = logging.getLogger('nagiosplugin')
|
_log = logging.getLogger('nagiosplugin')
|
||||||
|
|
||||||
# cache session for json and csv storage
|
# 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/)'
|
'-s', '--server', default=None, help='Specify the RDAP base URL (eg. https://rdap.nic.bzh/)'
|
||||||
)
|
)
|
||||||
argp.add_argument(
|
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(
|
argp.add_argument(
|
||||||
'-d', '--debug', action='count', default=0,
|
'-d', '--debug', action='count', default=0,
|
||||||
|
|
Loading…
Reference in a new issue