diff --git a/doc/conf.py b/doc/conf.py index 0c6c777f..47d18d7b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -71,6 +71,11 @@ osc.conf._model_to_rst( description=textwrap.dedent( """ The configuration file path is ``$XDG_CONFIG_HOME/osc/oscrc``, which usually translates into ``~/.config/osc/oscrc``. + + The configuration options are loaded with the following priority: + 1. environment variables: ``OSC_`` or ``OSC__`` + 2. command-line options + 3. oscrc config file """ ), sections={ diff --git a/osc/conf.py b/osc/conf.py index d53867e6..51fc3876 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -1817,8 +1817,8 @@ def get_config(override_conffile=None, Configure osc. The configuration options are loaded with the following priority: - 1. environment variables: OSC_ - 2. override arguments provided to get_config() + 1. environment variables: ``OSC_`` or ``OSC__`` + 2. override arguments provided to ``get_config()`` 3. oscrc config file """