mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-30 23:00:21 -04:00
...
This commit is contained in:
parent
9d1090091f
commit
5ced1e7ce9
@ -34,7 +34,7 @@ of title, authors or ISBN.
|
||||
parser.add_option('-t', '--title', help=_('Book title'))
|
||||
parser.add_option('-a', '--authors', help=_('Book author(s)'))
|
||||
parser.add_option('-i', '--isbn', help=_('Book ISBN'))
|
||||
parser.add_option('-I', '--identifier', action='append', help=_(
|
||||
parser.add_option('-I', '--identifier', action='append', default=[], help=_(
|
||||
'Identifiers such as ASIN/goodreads id etc. Can be specified multiple times for multiple identifiers.'
|
||||
' For example: ') + '--identifier asin:B0082BAJA0')
|
||||
parser.add_option('-v', '--verbose', default=False, action='store_true',
|
||||
@ -67,7 +67,7 @@ def main(args=sys.argv):
|
||||
authors = string_to_authors(opts.authors)
|
||||
|
||||
identifiers = {}
|
||||
for idspec in opts.identifiers:
|
||||
for idspec in opts.identifier:
|
||||
k, v = idspec.partition(':')[::2]
|
||||
if not k or not v:
|
||||
raise SystemExit('Not a valid identifier: {}'.format(idspec))
|
||||
|
Loading…
x
Reference in New Issue
Block a user