From d80376a43d378cdf3539f499aa1a5df6775b7375 Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Mon, 20 Oct 2014 09:41:06 +0200 Subject: [PATCH] [DOC] cmdline: database-related parameters --- doc/reference/cmdline.rst | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/doc/reference/cmdline.rst b/doc/reference/cmdline.rst index e3f2952c5d3..32c1ef48729 100644 --- a/doc/reference/cmdline.rst +++ b/doc/reference/cmdline.rst @@ -15,20 +15,32 @@ Running the server database used when installing or updating modules. +.. option:: --db-filter= + + hides databases that do not match ````. The filter is a + `regular expression`_, with the additions that: + + - ``%h`` is replaced by the whole hostname the request is made on. + - ``%d`` is replaced by the subdomain the request is made on, with the + exception of ``www`` (so domain ``odoo.com`` and ``www.odoo.com`` both + match the database ``odoo``) + .. option:: -i , --init= - comma-separated list of modules to install before running the server. + comma-separated list of modules to install before running the server + (requires :option:`-d`). .. option:: -u , --update= - comma-separated list of modules to update before running the server. + comma-separated list of modules to update before running the server + (requires :option:`-d`). -.. option:: --addons-path +.. option:: --addons-path= comma-separated list of directories in which modules are stored. These directories are scanned for modules (nb: when and why?) -.. option:: -c , --config +.. option:: -c , --config= provide an alternate configuration file @@ -85,3 +97,4 @@ can be overridden using :option:`--config `. Specifying to that file. .. _jinja2: http://jinja.pocoo.org +.. _regular expression: https://docs.python.org/2/library/re.html