Report nonexistent options as errors

Instead of trying to use them as filters
This commit is contained in:
Benno Lang 2025-01-22 20:46:16 +10:30
parent f1e05564a2
commit 4587950623

View file

@ -62,7 +62,7 @@ def read():
opts.episodes = 'old'
elif isNumber.match(arg):
opts.numEpisodes = int(arg)
elif opts.filter == None:
elif opts.filter == None and arg[0:2] != '--':
opts.filter = arg.lower()
else:
print(f"Unrecognised argument: {arg}")