diff --git a/sphinx/release_note.py b/sphinx/release_note.py index c945947..06b5f98 100644 --- a/sphinx/release_note.py +++ b/sphinx/release_note.py @@ -3,13 +3,20 @@ import zerohertzLib as zz -if __name__ == "__main__": - parser = argparse.ArgumentParser() - parser.add_argument("--token") - args = parser.parse_args() + +def main(): + logger.info(f"zerohertzLib version: {zz.__version__}") sphinx = os.path.dirname(__file__) if args.token is None: gh = zz.api.GitHub() else: gh = zz.api.GitHub(token=args.token) gh.release_note(sphinx_source_path=os.path.join(sphinx, "source"), per_page=300) + + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + parser.add_argument("--token") + args = parser.parse_args() + logger = zz.logging.Logger("Release Note") + main()