add --write-unsupported option (#15)

This commit is contained in:
Mike Fährmann
2017-05-27 16:16:57 +02:00
parent bf452a8516
commit 25bcdc8aa9
3 changed files with 22 additions and 12 deletions

View File

@@ -67,7 +67,7 @@ def build_parser():
)
parser.add_argument(
"-g", "--get-urls", dest="list_urls", action="count",
help="Print download urls",
help="Print URLs instead of downloading",
)
parser.add_argument(
"-j", "--dump-json", dest="list_data", action="store_true",
@@ -139,6 +139,11 @@ def build_parser():
metavar="OPT", action=ParseAction, dest="options", default=[],
help="Additional '<key>=<value>' option values",
)
parser.add_argument(
"--write-unsupported", metavar="FILE", dest="unsupportedfile",
help=("Write URLs, which get emitted by other extractors but cannot "
"be handled, to FILE"),
)
parser.add_argument(
"--list-extractors", dest="list_extractors", action="store_true",
help=("Print a list of extractor classes "