mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
Set home:
as the default key for -P
This commit is contained in:
parent
f5510afef0
commit
d74a58a186
@ -924,14 +924,16 @@ def _dict_from_options_callback(
|
|||||||
action='store_true', dest='useid', help=optparse.SUPPRESS_HELP)
|
action='store_true', dest='useid', help=optparse.SUPPRESS_HELP)
|
||||||
filesystem.add_option(
|
filesystem.add_option(
|
||||||
'-P', '--paths',
|
'-P', '--paths',
|
||||||
metavar='TYPES:PATH', dest='paths', default={}, type='str',
|
metavar='[TYPES:]PATH', dest='paths', default={}, type='str',
|
||||||
action='callback', callback=_dict_from_options_callback,
|
action='callback', callback=_dict_from_options_callback,
|
||||||
callback_kwargs={'allowed_keys': 'home|temp|%s' % '|'.join(OUTTMPL_TYPES.keys())},
|
callback_kwargs={
|
||||||
help=(
|
'allowed_keys': 'home|temp|%s' % '|'.join(OUTTMPL_TYPES.keys()),
|
||||||
|
'default_key': 'home'
|
||||||
|
}, help=(
|
||||||
'The paths where the files should be downloaded. '
|
'The paths where the files should be downloaded. '
|
||||||
'Specify the type of file and the path separated by a colon ":". '
|
'Specify the type of file and the path separated by a colon ":". '
|
||||||
'All the same types as --output are supported. '
|
'All the same types as --output are supported. '
|
||||||
'Additionally, you can also provide "home" and "temp" paths. '
|
'Additionally, you can also provide "home" (default) and "temp" paths. '
|
||||||
'All intermediary files are first downloaded to the temp path and '
|
'All intermediary files are first downloaded to the temp path and '
|
||||||
'then the final files are moved over to the home path after download is finished. '
|
'then the final files are moved over to the home path after download is finished. '
|
||||||
'This option is ignored if --output is an absolute path'))
|
'This option is ignored if --output is an absolute path'))
|
||||||
|
Loading…
Reference in New Issue
Block a user