Merge branch 'master' into fork_master
[youtube-dl] / youtube_dl / __init__.py
index 8e46dfea946d04046bbf943899f6d41a7c5e1c54..d7e1a91ada0ce29df8c2f0dca23d93a8e4d43acc 100644 (file)
@@ -229,6 +229,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)
@@ -551,6 +552,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: