Commit a4a10867fc

a4a10867fc97f042049899875c0daa18747ec749

parent: 49ad1edd52

Unregistered key

cmc <hello@cmc.pub> · 2025-03-29 06:09 UTC

add support for shortcut arguments

Layout: unified · split

nba/cli.py +2 −2
@@ -11,8 +11,8 @@ def nba() -> None:
1111 Parse command-line arguments and display either scoreboard or standings.
1212 """
1313 parser = argparse.ArgumentParser(description="NBA Scoreboard and Standings")
14 parser.add_argument('--scores', action='store_true', help='Display the scoreboard')
15 parser.add_argument('--standings', action='store_true', help='Display the standings')
14 parser.add_argument('--scores', '-sc', action='store_true', help='Display the scoreboard')
15 parser.add_argument('--standings', '-st', action='store_true', help='Display the standings')
1616 args = parser.parse_args()
1717
1818 games, ranks = fetch_data.fetch_data()
pyproject.toml +1 −1
@@ -1,6 +1,6 @@
11[project]
22name = "nba-scores"
3version = "0.1.6"
3version = "0.1.7"
44authors = [
55 { name="Christian Cleberg", email="hello@cmc.pub" },
66]