summaryrefslogtreecommitdiff
path: root/doc/reference/cmdline.rst
diff options
context:
space:
mode:
authorRichard Mathot <rim@openerp.com>2014-10-20 09:41:06 +0200
committerXavier Morel <xmo@openerp.com>2014-10-21 10:07:54 +0200
commitd80376a43d378cdf3539f499aa1a5df6775b7375 (patch)
treeb110a8a31980aa213fc99ed3f53ad3462b2f7263 /doc/reference/cmdline.rst
parentb9953acb0f3221bb66cd78afbd0d7949cf48161c (diff)
[DOC] cmdline: database-related parameters
Diffstat (limited to 'doc/reference/cmdline.rst')
-rw-r--r--doc/reference/cmdline.rst21
1 files 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=<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