mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
5bb6b7c818
commit
6eb3cd53e1
@ -102,7 +102,10 @@ def main(args=sys.argv):
|
||||
main(['calibre'])
|
||||
elif opts.viewer:
|
||||
from calibre.gui2.viewer.main import main
|
||||
main(['ebook-viewer'])
|
||||
vargs = ['ebook-viewer']
|
||||
if len(args) > 1:
|
||||
vargs.append(args[-1])
|
||||
main(vargs)
|
||||
elif opts.command:
|
||||
sys.argv = args[:1]
|
||||
exec opts.command
|
||||
|
Loading…
x
Reference in New Issue
Block a user