From c1709d5006e1f72cd71ea3bcc9d93159ebacd375 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Mon, 7 Oct 2019 00:29:47 +0100 Subject: [PATCH] Update docs now that flags are subcommands --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e5fa4ec..0de683e 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ control this with the (mandatory) option `--book-dir`. 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 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. -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 detect new files and files that have been removed. @@ -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: - $ liber --search "Das Kapital" + $ liber search "Das Kapital" This will print a list of documents that match the query. For the full query syntax, see @@ -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 command: - $ liber --sync=http://remote.server.address/ + $ liber sync=http://remote.server.address/ ### Running the HTTP interface 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 interfaces. The HTTP server needs some templates and static content @@ -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 by `--book-dir`. You should use the same value that you passed to -`liber --update`. +`liber update`. -- GitLab