]> gitweb.michael.orlitzky.com - djbdns-logparse.git/blobdiff - bin/djbdns-logparse.py
bin/djbdns-logparse.py: add a docstring for main().
[djbdns-logparse.git] / bin / djbdns-logparse.py
index b4074110956b807f187b56ead1b1677b11b17d37..689e33bf221e703b47d26a19342c9406a0997b77 100755 (executable)
@@ -301,6 +301,12 @@ def parse_logfile(file : typing.TextIO):
         print(line)
 
 def main():
+    r"""
+    The entry point to the program.
+
+    This function is responsible only for parsing any command-line
+    arguments, and then calling :func`parse_logfile` on them.
+    """
     # Create an argument parser using the file's docsctring as its
     # description.
     from argparse import ArgumentParser, FileType