diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2018-09-08 16:42:44 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-09-08 16:42:44 -0400 |
| commit | 4fe7c61916e9599c459e231245dccc92db2affa8 (patch) | |
| tree | 48ee5c9d5f7ac9af8d77ac7f03225082293bc5de /doc/config.rst | |
| parent | dde0a3ef3b88eb79bff8a36943cf934452eb8c26 (diff) | |
| download | python-coveragepy-git-4fe7c61916e9599c459e231245dccc92db2affa8.tar.gz | |
Strict variable substitution is now an option
Diffstat (limited to 'doc/config.rst')
| -rw-r--r-- | doc/config.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/config.rst b/doc/config.rst index 3e76e3d0..ab874619 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -59,8 +59,10 @@ or ``0`` and are case-insensitive. Environment variables can be substituted in by using dollar signs: ``$WORD`` or ``${WORD}`` will be replaced with the value of ``WORD`` in the environment. -A dollar sign can be inserted with ``$$``. Missing environment variables -will result in empty strings with no error. +A dollar sign can be inserted with ``$$``. If you want to raise an error if +an environment variable is undefined, use a question mark suffix: ``${WORD?}``. +Otherwise, missing environment variables will result in empty strings with no +error. Many sections and values correspond roughly to commands and options in the :ref:`command-line interface <cmd>`. |
