mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-29 13:42:37 +00:00
[options] Accept quoted string across multiple lines (#9940)
Like: -f " bestvideo+bestaudio/ best "
This commit is contained in:
parent
eaaaaec042
commit
9e29ef13a3
1 changed files with 1 additions and 3 deletions
|
@ -26,9 +26,7 @@ def parseOpts(overrideArguments=None):
|
||||||
except IOError:
|
except IOError:
|
||||||
return default # silently skip if file is not present
|
return default # silently skip if file is not present
|
||||||
try:
|
try:
|
||||||
res = []
|
res = compat_shlex_split(optionf.read(), comments=True)
|
||||||
for l in optionf:
|
|
||||||
res += compat_shlex_split(l, comments=True)
|
|
||||||
finally:
|
finally:
|
||||||
optionf.close()
|
optionf.close()
|
||||||
return res
|
return res
|
||||||
|
|
Loading…
Reference in a new issue