View Single Post
Old 08-28-2016, 10:13 AM   #258
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Serpico View Post
I'm trying to use CLI on Linux but it works only in the most simple version like this:

calibre-debug --run-plugin EpubMerge *.epub

If I try to put any option after EpubMerge it fails. I tried for example:

calibre-debug --run-plugin EpubMerge -f *.epub

or

calibre-debug --run-plugin EpubMerge -o output.epub *.epub
calibre-debug --run-plugin EpubMerge *.epub -o output.epub

and it fails. Can you please advise what command use to merge all files in a directory with flatten TOC, setting the title and the output file name?
You need to add -- after --run-plugin EpubMerge to signal to calibre-debug that all further options are to be passed to EpubMerge.

From the first post:

Code:
Usage: calibre-debug.exe --run-plugin EpubMerge -- [options] <input epub> [<input epub>...]
So do:

Code:
calibre-debug --run-plugin EpubMerge -- -f *.epub
JimmXinu is offline   Reply With Quote