diff options
author | Christian Cleberg <hello@cmc.pub> | 2025-03-29 01:09:05 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cmc.pub> | 2025-03-29 01:09:05 -0500 |
commit | a4a10867fc97f042049899875c0daa18747ec749 (patch) | |
tree | a023ffa6ee964fe31c7a339905a1db2afa83dd52 /nba/cli.py | |
parent | 49ad1edd521650864221524e5f0a7a605bb44cbb (diff) | |
download | nba-scores-a4a10867fc97f042049899875c0daa18747ec749.tar.gz nba-scores-a4a10867fc97f042049899875c0daa18747ec749.tar.bz2 nba-scores-a4a10867fc97f042049899875c0daa18747ec749.zip |
add support for shortcut arguments
Diffstat (limited to 'nba/cli.py')
-rw-r--r-- | nba/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |