[DOC] cmdline: database-related parameters
authorRichard Mathot <rim@openerp.com>
Mon, 20 Oct 2014 07:41:06 +0000 (09:41 +0200)
committerXavier Morel <xmo@openerp.com>
Tue, 21 Oct 2014 08:07:54 +0000 (10:07 +0200)
doc/reference/cmdline.rst

index e3f2952..32c1ef4 100644 (file)
@@ -15,20 +15,32 @@ Running the server
 
     database used when installing or updating modules.
 
+.. option:: --db-filter=<filter>
+
+    hides databases that do not match ``<filter>``. 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 <modules>, --init=<modules>
 
-    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 <modules>, --update=<modules>
 
-    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 <directories>
+.. option:: --addons-path=<directories>
 
     comma-separated list of directories in which modules are stored. These
     directories are scanned for modules (nb: when and why?)
 
-.. option:: -c <config>, --config <config>
+.. option:: -c <config>, --config=<config>
 
     provide an alternate configuration file
 
@@ -85,3 +97,4 @@ can be overridden using :option:`--config <odoo.py -c>`. Specifying
 to that file.
 
 .. _jinja2: http://jinja.pocoo.org
+.. _regular expression: https://docs.python.org/2/library/re.html