Skip to content

Commit

Permalink
Add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Feb 22, 2024
1 parent 0823771 commit f71c103
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions count_stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -101,6 +102,7 @@ def parse_opt():


def main(opt):
"""Executes the main process with parsed command-line options."""
run(**vars(opt))


Expand Down

0 comments on commit f71c103

Please sign in to comment.