From f71c1033c9280add9c24b0599fbdb34009d94ab9 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 22 Feb 2024 15:13:37 +0100 Subject: [PATCH] Add docstrings --- count_stars.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/count_stars.py b/count_stars.py index 9afe17b..0d5f585 100644 --- a/count_stars.py +++ b/count_stars.py @@ -93,6 +93,7 @@ def run( def parse_opt(): + """Parses command-line options and returns the arguments.""" parser = argparse.ArgumentParser() parser.add_argument("--token", type=str, default=GITHUB_TOKEN, help="GitHub Personal Access Token") parser.add_argument("--days", type=int, default=30, help="Trailing days to analyze") @@ -101,6 +102,7 @@ def parse_opt(): def main(opt): + """Executes the main process with parsed command-line options.""" run(**vars(opt))