Pass arguments on when running calibre-debug -g

This commit is contained in:
Kovid Goyal 2017-05-16 17:36:20 +05:30
parent 5a65ae3d94
commit acbd501e84
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -250,7 +250,7 @@ def main(args=sys.argv):
opts, args = option_parser().parse_args(args) opts, args = option_parser().parse_args(args)
if opts.gui: if opts.gui:
from calibre.gui_launch import calibre from calibre.gui_launch import calibre
calibre(['calibre']) calibre(['calibre'] + args[1:])
elif opts.gui_debug is not None: elif opts.gui_debug is not None:
run_debug_gui(opts.gui_debug) run_debug_gui(opts.gui_debug)
elif opts.viewer: elif opts.viewer: