dns_exporter.entrypoint
¶
dns_exporter.entrypoint
contains argparse stuff and dns_exporter
script entrypoint.
This module is mostly boilerplate code for command-line argument handling and logging.
- dns_exporter.entrypoint.get_parser() ArgumentParser ¶
Create and return the argparse object.
- dns_exporter.entrypoint.main(mockargs: list[str] | None = None) None ¶
Read config and start exporter.
- dns_exporter.entrypoint.parse_args(mockargs: list[str] | None = None) tuple[ArgumentParser, Namespace] ¶
Create an argparse monster and parse mockargs or sys.argv[1:].