diff options
author | Ricardo Garcia <[email protected]> | 2008-07-22 22:47:36 +0200 |
---|---|---|
committer | Ricardo Garcia <[email protected]> | 2010-10-31 11:23:26 +0100 |
commit | d7bc253bb82ac4f8a6ffef568c5b6eee508c7206 (patch) | |
tree | 122c6979a660dd8d5514983147767c521f36703a | |
parent | bafa5cd969c218642e21af3a337723589b1afb9c (diff) | |
download | youtube-dl-d7bc253bb82ac4f8a6ffef568c5b6eee508c7206.tar.gz youtube-dl-d7bc253bb82ac4f8a6ffef568c5b6eee508c7206.zip |
Fix video format command line option parsing and set version number2008.07.22
-rwxr-xr-x | youtube-dl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube-dl b/youtube-dl index b0b494ed6..135d14809 100755 --- a/youtube-dl +++ b/youtube-dl @@ -540,7 +540,7 @@ if __name__ == '__main__': # Parse command line parser = optparse.OptionParser( usage='Usage: %prog [options] url...', - version='INTERNAL', + version='2008.07.22', conflict_handler='resolve', ) parser.add_option('-h', '--help', @@ -570,9 +570,9 @@ if __name__ == '__main__': parser.add_option('-f', '--format', dest='format', metavar='FMT', help='video format code') parser.add_option('-b', '--best-quality', - action='store_const', dest='video_format', help='alias for -f 18', const='18') + action='store_const', dest='format', help='alias for -f 18', const='18') parser.add_option('-m', '--mobile-version', - action='store_const', dest='video_format', help='alias for -f 17', const='17') + action='store_const', dest='format', help='alias for -f 17', const='17') parser.add_option('-i', '--ignore-errors', action='store_true', dest='ignoreerrors', help='continue on download errors', default=False) (opts, args) = parser.parse_args() |