sane-bt-search: error on bad --top=N usage

This commit is contained in:
Colin 2023-07-22 21:55:24 +00:00
parent 64c8dabaf2
commit c862b559e7

View File

@ -218,6 +218,7 @@ def main(args: list[str]):
help = options.pop("help")
json = options.pop("json")
query = options.pop("query")
assert options.get("top") is not True, "use `--top=N`, not `--top N`"
top = int(options.pop("top"))
verbose = options.pop("verbose")
manga = options.pop("manga")