X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=inline;f=docs%2Fcommand_line.rst;h=d91c3f50fc21f99e2555ad225bb4f73ae9d29947;hb=756e91fa3da986c3e6da752e6552a99130d1c920;hp=ef27723649b84b110a3a7086f44493ae00edee23;hpb=76fad1db9bf3d812333ca9f65b1ed87c8549cab7;p=m_librarian.git diff --git a/docs/command_line.rst b/docs/command_line.rst index ef27723..d91c3f5 100644 --- a/docs/command_line.rst +++ b/docs/command_line.rst @@ -6,6 +6,7 @@ Command-line scripts .. contents:: :local: +.. highlight:: none ml-initdb.py ------------ @@ -118,7 +119,7 @@ Book searching and downloading Usage:: - ml-search.py books [-t title] [-s series] [-a archive] [-f file] [-p path] [--get] [--id id] [--surname name] [--name name] [--misc-name name] [--fullname name] [--aid aid] [-e ext] [--eid eid] [--gname name] [--gtitle title] [--gid gid] [-l lang] [--lid lid] + ml-search.py books [-t title] [-s series] [-a archive] [-f file] [-p path] [--format f] [--get] [--get-many N] [--id id] [--surname name] [--name name] [--misc-name name] [--fullname name] [--aid aid] [-e ext] [--eid eid] [--gname name] [--gtitle title] [--gid gid] [-l lang] [--lid lid] Search and print a list of books by title, series, archive or file name. @@ -130,7 +131,9 @@ Options:: -f, --file file Search by file name (without extension) -p, --path path Path to the directory with the library archives + --format format Format of the downloaded file name --get Download exactly one book + --get-many N Download at most this many books --id id Search by database id --surname surname Search by author’s surname --name name Search by author’s name @@ -190,6 +193,12 @@ Format must not end in directory separator (`/` or `\\`). If specifier unconditionally with a dot. That is, format `%f` is equivalent to `%f.%e`. +Option `--format format` allows to overwrite this configuration value. + +Option `--get-many N` allows to download many books (at most N, where N +is an integer). Options `--get-many N` and `--get` are, of course, +mutually incompatible. + Extension search ^^^^^^^^^^^^^^^^