mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -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
|
# Fetch the extension-specific CLI options from the plugin
|
||||||
# library.catalogs.<format>.py
|
# library.catalogs.<format>.py
|
||||||
plugin = plugin_for_catalog_format(fmt)
|
plugin = plugin_for_catalog_format(fmt)
|
||||||
|
p = parser.add_option_group(_('{} OPTIONS').format(fmt.upper()))
|
||||||
for option in plugin.cli_options:
|
for option in plugin.cli_options:
|
||||||
if option.action:
|
if option.action:
|
||||||
parser.add_option(
|
p.add_option(
|
||||||
option.option,
|
option.option,
|
||||||
default=option.default,
|
default=option.default,
|
||||||
dest=option.dest,
|
dest=option.dest,
|
||||||
@ -35,7 +36,7 @@ def option_parser(get_parser, args): # {{{
|
|||||||
help=option.help
|
help=option.help
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
parser.add_option(
|
p.add_option(
|
||||||
option.option,
|
option.option,
|
||||||
default=option.default,
|
default=option.default,
|
||||||
dest=option.dest,
|
dest=option.dest,
|
||||||
@ -50,6 +51,7 @@ def option_parser(get_parser, args): # {{{
|
|||||||
|
|
||||||
Export a catalog in format specified by path/to/destination extension.
|
Export a catalog in format specified by path/to/destination extension.
|
||||||
Options control how entries are displayed in the generated catalog output.
|
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