aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-28 23:57:56 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-29 00:00:45 +0700
commit1a241a2d02e2507219e81d7b18c18f10937ae6e7 (patch)
treedad14d46ae2ba2f492cdba7b8839d4b1aed3f681 /youtube_dl/options.py
parentacbb2374bce27eda16764b80832f88cf833a51e5 (diff)
[options] Refactor autonumber options and add validation (closes #727, closes #2702, closes #9362)
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 571525434..3abf621c0 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -661,12 +661,12 @@ def parseOpts(overrideArguments=None):
help=('Output filename template, see the "OUTPUT TEMPLATE" for all the info'))
filesystem.add_option(
'--autonumber-size',
- dest='autonumber_size', metavar='NUMBER',
- help='Specify the number of digits in %(autonumber)s when it is present in output filename template or --auto-number option is given')
+ dest='autonumber_size', metavar='NUMBER', default=5, type=int,
+ help='Specify the number of digits in %(autonumber)s when it is present in output filename template or --auto-number option is given (default is %default)')
filesystem.add_option(
'--autonumber-start',
- dest='autonumber_start', metavar='NUMBER', type="int", default=1,
- help='Specify the start value for the %(autonumber)s counter. Defaults to 1.')
+ dest='autonumber_start', metavar='NUMBER', default=1, type=int,
+ help='Specify the start value for %(autonumber)s (default is %default)')
filesystem.add_option(
'--restrict-filenames',
action='store_true', dest='restrictfilenames', default=False,