diff options
author | Filippo Valsorda <filippo.valsorda@gmail.com> | 2012-12-11 09:57:40 +0100 |
---|---|---|
committer | Filippo Valsorda <filippo.valsorda@gmail.com> | 2012-12-11 09:57:40 +0100 |
commit | 8d5d3a5d00ac8a5d39321f301308abfb473981a8 (patch) | |
tree | 409839f84765f1ad7c4c130b575244767d2f9471 /youtube_dl | |
parent | 37c8fd48421ce8bbbe25da962b2e8d5ca2629dd0 (diff) |
exposing the test mode as --test (hidden and undocumented)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 71c7d29e0..e6cd7f5d4 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -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: |