From a4a10867fc97f042049899875c0daa18747ec749 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sat, 29 Mar 2025 01:09:05 -0500 Subject: add support for shortcut arguments --- nba/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nba') 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() -- cgit v1.2.3-70-g09d2