Skip to content

Commit

Permalink
Fix script output (#14)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
cschindlbeck and github-actions[bot] authored Dec 28, 2024
1 parent 5d19084 commit cd06e1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ Example:
<pre>
<code>

Usage:
script.py -r <rating_type>

Options:
-h, --help Show this help message and exit
-r, --rating_type Specify the rating type (e.g., Blitz, Bullet, etc.)


_ _ _
| | (_) | |
| | _ ___| |__ ___ ___ ___
Expand All @@ -42,7 +34,7 @@ Example:
1250 ┤

User: christopsy666, Rating type: Bullet on lichess.org
Last update: 28.12.2024 11:57:40
Last update: 28.12.2024 12:03:12
</code>
</pre>

Expand Down
18 changes: 1 addition & 17 deletions lichess_ascii_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,27 +123,11 @@ def print_to_markdown(self, user_name: str, rating: str) -> None:
print(f"Last update: {dt_string}")


def usage():
"""
Prints CLI args explanation
"""
print(
"""
Usage:
script.py -r <rating_type>
Options:
-h, --help Show this help message and exit
-r, --rating_type Specify the rating type (e.g., Blitz, Bullet, etc.)
"""
)


def main():
"""
Main function
"""
parser = argparse.ArgumentParser(description="Generate Lichess charts based on rating type.", usage=usage())
parser = argparse.ArgumentParser(description="Generate Lichess charts based on rating type.")
parser.add_argument(
"-r", "--rating_type", type=str, required=True, help="Specify the rating type (e.g., Blitz, Bullet, etc.)"
)
Expand Down

0 comments on commit cd06e1e

Please sign in to comment.