mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
7f61ff7b9c
commit
746a496c70
@ -25,9 +25,10 @@ def option_parser(get_parser, args): # {{{
|
||||
# Fetch the extension-specific CLI options from the plugin
|
||||
# library.catalogs.<format>.py
|
||||
plugin = plugin_for_catalog_format(fmt)
|
||||
p = parser.add_option_group(_('{} OPTIONS').format(fmt.upper()))
|
||||
for option in plugin.cli_options:
|
||||
if option.action:
|
||||
parser.add_option(
|
||||
p.add_option(
|
||||
option.option,
|
||||
default=option.default,
|
||||
dest=option.dest,
|
||||
@ -35,7 +36,7 @@ def option_parser(get_parser, args): # {{{
|
||||
help=option.help
|
||||
)
|
||||
else:
|
||||
parser.add_option(
|
||||
p.add_option(
|
||||
option.option,
|
||||
default=option.default,
|
||||
dest=option.dest,
|
||||
@ -50,6 +51,7 @@ def option_parser(get_parser, args): # {{{
|
||||
|
||||
Export a catalog in format specified by path/to/destination extension.
|
||||
Options control how entries are displayed in the generated catalog output.
|
||||
Note that different catalog formats support different sets of options.
|
||||
'''
|
||||
)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user