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:
11 Parse command-line arguments and display either scoreboard or standings. 11 Parse command-line arguments and display either scoreboard or standings.
12 """ 12 """
13 parser = argparse.ArgumentParser(description="NBA Scoreboard and Standings") 13 parser = argparse.ArgumentParser(description="NBA Scoreboard and Standings")
14 parser.add_argument('--scores', action='store_true', help='Display the scoreboard') 14 parser.add_argument('--scores', '-sc', action='store_true', help='Display the scoreboard')
15 parser.add_argument('--standings', action='store_true', help='Display the standings') 15 parser.add_argument('--standings', '-st', action='store_true', help='Display the standings')
16 args = parser.parse_args() 16 args = parser.parse_args()
17 17
18 games, ranks = fetch_data.fetch_data() 18 games, ranks = fetch_data.fetch_data()
pyproject.toml +1 −1
@@ -1,6 +1,6 @@
1[project] 1[project]
2name = "nba-scores" 2name = "nba-scores"
3version = "0.1.6" 3version = "0.1.7"
4authors = [ 4authors = [
5 { name="Christian Cleberg", email="hello@cmc.pub" }, 5 { name="Christian Cleberg", email="hello@cmc.pub" },
6] 6]