Invoking hbd without any arguments results in a crash:
$ hbd
Traceback (most recent call last):
File "/home/shane/.local/bin/hbd", line 8, in <module>
sys.exit(cli())
File "/home/shane/.local/lib/python3.9/site-packages/humblebundle_downloader/cli.py", line 81, in cli
cli_args = parse_args(sys.argv[1:])
File "/home/shane/.local/lib/python3.9/site-packages/humblebundle_downloader/cli.py", line 18, in parse_args
if args[0].lower() == 'download':
IndexError: list index out of range
This PR should fix that. It's a simple 1-line fix. Also included is a test.
Invoking
hbd
without any arguments results in a crash:This PR should fix that. It's a simple 1-line fix. Also included is a test.