]> git.bitcoin.ninja Git - youtube-dl/commitdiff
exposing the test mode as --test (hidden and undocumented)
authorFilippo Valsorda <filippo.valsorda@gmail.com>
Tue, 11 Dec 2012 08:57:40 +0000 (09:57 +0100)
committerFilippo Valsorda <filippo.valsorda@gmail.com>
Tue, 11 Dec 2012 08:57:40 +0000 (09:57 +0100)
youtube_dl/__init__.py

index 71c7d29e076f1b16e19129df69cd487821324b51..e6cd7f5d4ec2bdbcfe6ab8462faed51c1128c2f3 100644 (file)
@@ -203,6 +203,7 @@ def parseOpts():
     general.add_option('--list-extractors',
             action='store_true', dest='list_extractors',
             help='List all supported extractors and the URLs they would handle', default=False)
+    general.add_option('--test', action='store_true', dest='test', default=False, help=optparse.SUPPRESS_HELP)
 
     selection.add_option('--playlist-start',
             dest='playliststart', metavar='NUMBER', help='playlist video to start at (default is %default)', default=1)
@@ -525,6 +526,7 @@ def _real_main():
         'max_downloads': opts.max_downloads,
         'prefer_free_formats': opts.prefer_free_formats,
         'verbose': opts.verbose,
+        'test': opts.test,
         })
 
     if opts.verbose: