JVKdouk / node-ebook-converter

Node.js minimal ebook converter (single package) with built in queue and threading functionalities.
MIT License
38 stars 6 forks source link

Error: option does not take a value #3

Closed Alynva closed 3 years ago

Alynva commented 3 years ago

Some of the parameters from here https://manual.calibre-ebook.com/generated/en/ebook-convert.html are just flags that doesn't receive a value. As an example, the --mobi-ignore-margins.

How to deal with this? I have try using true, but didn't work.

Alynva commented 3 years ago

Also, the worker.on('error', error => reject(error)); doesn't catch this error, making my script never ends. I have try using try { ... } catch { ... } but didn't work.

JVKdouk commented 3 years ago

Hey @Alynva, just solved the problem! Version 1.0.10 now brings a fix for boolean flags. Please, give it a try. For now I will close this issue, but if the problem persists, feel free to reopen it!

Alynva commented 3 years ago

@JVKdouk look this

JVKdouk commented 3 years ago

@Alynva problem solved. Sorry for that!