Completed conversion of authentication options to docopt, commented out
This commit is contained in:
parent
f2f43bee10
commit
273bf9bce6
@ -366,12 +366,12 @@ def parseOpts(overrideArguments=None):
|
|||||||
selection.add_option('--dateafter', metavar='DATE', dest='dateafter', help='download only videos uploaded after this date', default=None)
|
selection.add_option('--dateafter', metavar='DATE', dest='dateafter', help='download only videos uploaded after this date', default=None)
|
||||||
|
|
||||||
|
|
||||||
authentication.add_option('-u', '--username',
|
#authentication.add_option('-u', '--username',
|
||||||
dest='username', metavar='USERNAME', help='account username')
|
# dest='username', metavar='USERNAME', help='account username')
|
||||||
authentication.add_option('-p', '--password',
|
#authentication.add_option('-p', '--password',
|
||||||
dest='password', metavar='PASSWORD', help='account password')
|
# dest='password', metavar='PASSWORD', help='account password')
|
||||||
authentication.add_option('-n', '--netrc',
|
#authentication.add_option('-n', '--netrc',
|
||||||
action='store_true', dest='usenetrc', help='use .netrc authentication data', default=False)
|
# action='store_true', dest='usenetrc', help='use .netrc authentication data', default=False)
|
||||||
authentication.add_option('--video-password',
|
authentication.add_option('--video-password',
|
||||||
dest='videopassword', metavar='PASSWORD', help='video password (vimeo only)')
|
dest='videopassword', metavar='PASSWORD', help='video password (vimeo only)')
|
||||||
|
|
||||||
@ -742,7 +742,7 @@ def _real_main(argv=None):
|
|||||||
'usenetrc': opts['--netrc'],
|
'usenetrc': opts['--netrc'],
|
||||||
'username': opts['--username'],
|
'username': opts['--username'],
|
||||||
'password': opts['--password'],
|
'password': opts['--password'],
|
||||||
'videopassword': opts.videopassword,
|
'videopassword': opts['--video-password'],
|
||||||
'quiet': (opts['--quiet'] or opts['--get-url'] or opts['--get-title'] or opts['--get-id'] or opts['--get-thumbnail'] or opts['--get-description'] or opts['--get-filename'] or opts['--get-format']),
|
'quiet': (opts['--quiet'] or opts['--get-url'] or opts['--get-title'] or opts['--get-id'] or opts['--get-thumbnail'] or opts['--get-description'] or opts['--get-filename'] or opts['--get-format']),
|
||||||
'forceurl': opts['--get-url'],
|
'forceurl': opts['--get-url'],
|
||||||
'forcetitle': opts['--get-title'],
|
'forcetitle': opts['--get-title'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user