aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/options.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dlc/options.py')
-rw-r--r--youtube_dlc/options.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/youtube_dlc/options.py b/youtube_dlc/options.py
index cb8e8236a..bb37554ec 100644
--- a/youtube_dlc/options.py
+++ b/youtube_dlc/options.py
@@ -878,9 +878,21 @@ def parseOpts(overrideArguments=None):
help='Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames')
filesystem.add_option(
'--no-restrict-filenames',
- action='store_false', dest='restrictfilenames', default=False,
+ action='store_false', dest='restrictfilenames',
help='Allow Unicode characters, "&" and spaces in filenames (default)')
filesystem.add_option(
+ '--windows-filenames',
+ action='store_true', dest='windowsfilenames', default=False,
+ help='Force filenames to be windows compatible')
+ filesystem.add_option(
+ '--no-windows-filenames',
+ action='store_false', dest='windowsfilenames',
+ help='Make filenames windows compatible only if using windows (default)')
+ filesystem.add_option(
+ '--trim-filenames', '--trim-file-names', metavar='LENGTH',
+ dest='trim_file_name', default=0, type=int,
+ help='Limit the filename length (excluding extension) to the specified number of characters')
+ filesystem.add_option(
'-A', '--auto-number',
action='store_true', dest='autonumber', default=False,
help=optparse.SUPPRESS_HELP)
@@ -992,10 +1004,6 @@ def parseOpts(overrideArguments=None):
'--rm-cache-dir',
action='store_true', dest='rm_cachedir',
help='Delete all filesystem cache files')
- filesystem.add_option(
- '--trim-file-name', metavar='LENGTH',
- dest='trim_file_name', default=0, type=int,
- help='Limit the filename length (extension excluded)')
thumbnail = optparse.OptionGroup(parser, 'Thumbnail Images')
thumbnail.add_option(