mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-30 20:46:06 +00:00
Apply suggestions from code review
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
cd807498b4
commit
15e3a9f603
@ -228,7 +228,7 @@ class _YoutubeDLOptionParser(optparse.OptionParser):
|
|||||||
assert formatter, 'Formatter can not be None'
|
assert formatter, 'Formatter can not be None'
|
||||||
formatted_help = super().format_option_help(formatter=formatter)
|
formatted_help = super().format_option_help(formatter=formatter)
|
||||||
formatter.indent()
|
formatter.indent()
|
||||||
heading = formatter.format_heading('Preset aliases')
|
heading = formatter.format_heading('Preset Aliases')
|
||||||
formatter.indent()
|
formatter.indent()
|
||||||
result = []
|
result = []
|
||||||
for name, args in _PRESET_ALIASES.items():
|
for name, args in _PRESET_ALIASES.items():
|
||||||
@ -555,10 +555,10 @@ def create_parser():
|
|||||||
metavar='PRESET', dest='_', type='str',
|
metavar='PRESET', dest='_', type='str',
|
||||||
action='callback', callback=_preset_alias_callback,
|
action='callback', callback=_preset_alias_callback,
|
||||||
help=(
|
help=(
|
||||||
'Applies a predefined preset. e.g. --preset-alias mp3. '
|
'Applies a predefined set of options. e.g. --preset-alias mp3. '
|
||||||
f'The following presets are available: {", ".join(_PRESET_ALIASES)}. '
|
f'The following presets are available: {", ".join(_PRESET_ALIASES)}. '
|
||||||
'See the "Preset aliases" section at the end for more infos. '
|
'See the "Preset Aliases" section at the end for more info. '
|
||||||
'This option can be used multiple times.'))
|
'This option can be used multiple times'))
|
||||||
|
|
||||||
network = optparse.OptionGroup(parser, 'Network Options')
|
network = optparse.OptionGroup(parser, 'Network Options')
|
||||||
network.add_option(
|
network.add_option(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user