[options] add '--restrict-filenames' & '--windows-filenames'
This commit is contained in:
@@ -268,6 +268,19 @@ def build_parser():
|
||||
dest="directory", metavar="PATH",
|
||||
help="Exact location for file downloads",
|
||||
)
|
||||
general.add_argument(
|
||||
"--restrict-filenames",
|
||||
dest="path-restrict", metavar="VALUE", action=ConfigAction,
|
||||
help=("Replace restricted filename characters with underscores. "
|
||||
"One of 'windows', 'unix', 'ascii', 'ascii+', "
|
||||
"or a custom set of characters"),
|
||||
)
|
||||
general.add_argument(
|
||||
"--windows-filenames",
|
||||
dest="path-restrict", nargs=0, action=ConfigConstAction,
|
||||
const="windows",
|
||||
help="Force filenames to be Windows-compatible",
|
||||
)
|
||||
general.add_argument(
|
||||
"-X", "--extractors",
|
||||
dest="extractor_sources", metavar="PATH", action="append",
|
||||
|
||||
Reference in New Issue
Block a user