allow filtering '--list-extractors' results

with blacklist/whitelist syntax, e.g.

--list-extractors pixiv
--list-extractors pixiv:user pixiv:work
--list-extractors :search
This commit is contained in:
Mike Fährmann
2024-09-07 22:41:02 +02:00
parent 0db3c11ab0
commit 4da3347d18
4 changed files with 14 additions and 6 deletions

View File

@@ -344,7 +344,7 @@ def build_parser():
)
output.add_argument(
"--list-extractors",
dest="list_extractors", action="store_true",
dest="list_extractors", metavar="CATEGORIES", nargs="*",
help=("Print a list of extractor classes "
"with description, (sub)category and example URL"),
)