settings: clarify that null defaults are supported, using the syntax "${VAR_NAME}"

Using "${VAR_NAME:null}", instead, would define the literal string "null".
This commit is contained in:
muxator 2020-04-21 03:40:49 +02:00 committed by muxator
parent 68ff6d497d
commit 9882362e2e
3 changed files with 15 additions and 1 deletions

View file

@ -65,6 +65,9 @@
* "password": "${PASSW}" // if PASSW is not defined would result in password === null
* "password": "${PASSW:}" // if PASSW is not defined would result in password === ''
*
* If you want to use an empty value (null) as default value for a variable,
* simply do not set it, without putting any colons: "${ABIWORD}".
*
* 3) if you want to use newlines in the default value of a string parameter,
* use "\n" as usual.
*