Report nonexistent options as errors
Instead of trying to use them as filters
This commit is contained in:
parent
f1e05564a2
commit
4587950623
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue