krz/nba-scores

A CLI/TUI app for NBA scores.

clone: git clone https://gitbay.org/krz/nba-scores.git

a4a10867fc97f042049899875c0daa18747ec749

signed_unknown_key

author: Christian Cleberg <hello@cmc.pub> · 2025-03-29T06:09:05Z

add support for shortcut arguments
 nba/cli.py     | 4 ++--
 pyproject.toml | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/nba/cli.py b/nba/cli.py
index 4e13abf..c41055f 100644
--- a/nba/cli.py
+++ b/nba/cli.py
@@ -11,8 +11,8 @@ def nba() -> None:
         Parse command-line arguments and display either scoreboard or standings.
         """
         parser = argparse.ArgumentParser(description="NBA Scoreboard and Standings")
-        parser.add_argument('--scores', action='store_true', help='Display the scoreboard')
-        parser.add_argument('--standings', action='store_true', help='Display the standings')
+        parser.add_argument('--scores', '-sc', action='store_true', help='Display the scoreboard')
+        parser.add_argument('--standings', '-st', action='store_true', help='Display the standings')
         args = parser.parse_args()
 
         games, ranks = fetch_data.fetch_data()
diff --git a/pyproject.toml b/pyproject.toml
index 9e7312b..39d6bc1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [project]
 name = "nba-scores"
-version = "0.1.6"
+version = "0.1.7"
 authors = [
   { name="Christian Cleberg", email="hello@cmc.pub" },
 ]