sane-bt-search: error on bad --top=N
usage
This commit is contained in:
@@ -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")
|
||||||
|
Reference in New Issue
Block a user