Skip to content
Snippets Groups Projects
Commit c1709d50 authored by ale's avatar ale
Browse files

Update docs now that flags are subcommands

parent 5a44cfe2
No related branches found
No related tags found
No related merge requests found
...@@ -59,13 +59,13 @@ control this with the (mandatory) option `--book-dir`. ...@@ -59,13 +59,13 @@ control this with the (mandatory) option `--book-dir`.
To index a local ebook collection, run the following command: To index a local ebook collection, run the following command:
$ liber --book-dir=/path/to/ebooks --update $ liber --book-dir=/path/to/ebooks update
The tool will attempt to identify books on Google Books. It is The tool will attempt to identify books on Google Books. It is
possible that more than one match is found, in which case `liber` will possible that more than one match is found, in which case `liber` will
open a dialog box to ask you interactively to pick the right match. open a dialog box to ask you interactively to pick the right match.
You can run `liber --update` as many times as you like (for example You can run `liber update` as many times as you like (for example
whenever you add an ebook to your collection), it will automatically whenever you add an ebook to your collection), it will automatically
detect new files and files that have been removed. detect new files and files that have been removed.
...@@ -80,7 +80,7 @@ images, and it will not perform remote searches for book metadata. ...@@ -80,7 +80,7 @@ images, and it will not perform remote searches for book metadata.
You can search the index from the command line, for example: You can search the index from the command line, for example:
$ liber --search "Das Kapital" $ liber search "Das Kapital"
This will print a list of documents that match the query. For the full This will print a list of documents that match the query. For the full
query syntax, see query syntax, see
...@@ -92,14 +92,14 @@ To upload the contents of the local database (including the file ...@@ -92,14 +92,14 @@ To upload the contents of the local database (including the file
contents themselves) to a remote `liber` server, run the following contents themselves) to a remote `liber` server, run the following
command: command:
$ liber --sync=http://remote.server.address/ $ liber sync=http://remote.server.address/
### Running the HTTP interface ### Running the HTTP interface
The HTTP interface can be started with: The HTTP interface can be started with:
$ liber --http-server=:3000 --book-dir=/path/to/ebooks $ liber --book-dir=/path/to/ebooks server
This will start an HTTP server on port 3000, listening on all This will start an HTTP server on port 3000, listening on all
interfaces. The HTTP server needs some templates and static content interfaces. The HTTP server needs some templates and static content
...@@ -107,4 +107,4 @@ which the Debian package installs in `/usr/share/liber/htdocs`. ...@@ -107,4 +107,4 @@ which the Debian package installs in `/usr/share/liber/htdocs`.
The HTTP server will store uploaded files into the directory specified The HTTP server will store uploaded files into the directory specified
by `--book-dir`. You should use the same value that you passed to by `--book-dir`. You should use the same value that you passed to
`liber --update`. `liber update`.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment