![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
commandline calibredb
Hi Kovid,
I have a question to options and global options. Is there a fix sequence what need to be declared first between normal and global options? I came to this during the cli translations and tests for this. I did some tests and struggled with the global options what ends with a notice, that I am doing something wrong (but no good tip where I have to look for). In the end I fix my problem, but it take some time to understand what was going on. Here the example: Global options at the beginning: calibredb --library-path="d:\Test-DB" list --separator=";" >Booklist.txt ends up with an error The same, but now the global option at the end: calibredb list --separator=";" --library-path="d:\Test-DB" >Buchliste.txt works well. It is maybe a good thing to make a remark in the documentation to this, if there is a fix sequence between global and normal options. An other point I found is regarding the option --line-width. Something is maybe wrong with the line length calculation. Is there an offset in? Pls take a look in the example attached (book-id 10313). The total line length should be 68/67 including the book-id. I can prevent a line break only with line-width >=129. Some thoughts: I am missing an option for fields w/o filling spaces at the end of a field and use this in combination with line-width and the opposite one with a fix field-width. Then you have both, in combination with fixed and variable field-length w/o line break. Best regards, Armin |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,253
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
All options in calibredb must occur after the command like list, add, remove, whatever. Global Options are simply options that work the same for all commands. This is shown in the very first line of the help output
Usage: calibredb command [options] [arguments] Run from source, or wait for the next release, and you will find the spaces at the end are gone. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Kovid,
Thanks for looking to it. You are right. Guess, I struggle more often to this because I do not use it every time. Maybe it is sometimes simpler for me to see an real example in a tutorial ![]() Thanks again. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub -> Mobi -> Mail with commandline | Mr.Walkman | Conversion | 8 | 11-18-2020 11:35 PM |
Commandline SQL question | cmkread | Library Management | 4 | 02-26-2013 11:04 PM |
cover creator commandline | ilovejedd | Calibre | 2 | 08-16-2011 07:13 PM |
deleting old news via commandline?! | gdm11 | Calibre | 1 | 06-12-2011 07:33 PM |
Commandline only build | plord | Calibre | 11 | 11-27-2010 06:56 PM |