mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 14:14:54 +01:00
Better formatting (PEP 8)
This commit is contained in:
parent
dd109dee8e
commit
3aeb78ea4e
|
@ -127,9 +127,12 @@ def _format_option_string(option):
|
||||||
|
|
||||||
opts = []
|
opts = []
|
||||||
|
|
||||||
if option._short_opts: opts.append(option._short_opts[0])
|
if option._short_opts:
|
||||||
if option._long_opts: opts.append(option._long_opts[0])
|
opts.append(option._short_opts[0])
|
||||||
if len(opts) > 1: opts.insert(1, ', ')
|
if option._long_opts:
|
||||||
|
opts.append(option._long_opts[0])
|
||||||
|
if len(opts) > 1:
|
||||||
|
opts.insert(1, ', ')
|
||||||
|
|
||||||
if option.takes_value(): opts.append(' %s' % option.metavar)
|
if option.takes_value(): opts.append(' %s' % option.metavar)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user