Update parser options

This commit is contained in:
Alok Saboo 2023-03-19 10:21:32 -04:00
parent 2d942ce722
commit 2060e047d2

View file

@ -76,16 +76,15 @@ class EmbedCoverArtPlugin(BeetsPlugin):
def commands(self):
# Embed command.
embed_cmd = ui.Subcommand(
'embedart', help='embed image files into file metadata'
)
embed_cmd = ui.Subcommand('embedart',
help='embed image files into file metadata')
embed_cmd.parser.add_option('-f', '--file', metavar='PATH',
help='the image file to embed')
embed_cmd.parser.add_option("-y", "--yes", action="store_true",
help="skip confirmation")
embed_cmd.parser.add_option('-u', '--url', metavar='URL',
embed_cmd.parser.add_option('-u', '--url', action="store_true",
help='the URL of the image file to embed')
maxwidth = self.config['maxwidth'].get(int)