added --autonumber-start NUMBER as a command line option to be able to offset the...
[youtube-dl] / youtube_dl / options.py
index 09c9387caab2e1ef01f3e1862e34e21f9e8b49be..571525434e7e1f27a4a6b64318129940b2f51ba1 100644 (file)
@@ -663,6 +663,10 @@ def parseOpts(overrideArguments=None):
         '--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')
+    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.')
     filesystem.add_option(
         '--restrict-filenames',
         action='store_true', dest='restrictfilenames', default=False,