sane-bt-search: error on bad --top=N
usage
This commit is contained in:
parent
64c8dabaf2
commit
c862b559e7
|
@ -218,6 +218,7 @@ def main(args: list[str]):
|
||||||
help = options.pop("help")
|
help = options.pop("help")
|
||||||
json = options.pop("json")
|
json = options.pop("json")
|
||||||
query = options.pop("query")
|
query = options.pop("query")
|
||||||
|
assert options.get("top") is not True, "use `--top=N`, not `--top N`"
|
||||||
top = int(options.pop("top"))
|
top = int(options.pop("top"))
|
||||||
verbose = options.pop("verbose")
|
verbose = options.pop("verbose")
|
||||||
manga = options.pop("manga")
|
manga = options.pop("manga")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user