Mercurial > irccd
diff doc/html/guide/03-config-format/03-lists.md @ 0:1158cffe5a5e
Initial import
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 08 Feb 2016 16:43:14 +0100 |
parents | |
children | 9a117bb90214 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/html/guide/03-config-format/03-lists.md Mon Feb 08 16:43:14 2016 +0100 @@ -0,0 +1,30 @@ +## The list construct + +When requested, an option can have multiples values in a list. The syntax uses parentheses and values are separated +by commas. + +If the list have only one value, you can just use a simple string. + +### Examples + +<div class="alert alert-success" role="alert"> +**Example**: two servers defined in a rule + +````ini +[rule] +servers = ( "server1", "server2" ) +```` +</div> + +<div class="alert alert-success" role="alert"> +**Example**: only one server + +````ini +[rule] +servers = "only-one-server" +```` +</div> + +<div class="alert alert-info" role="alert"> +**Note:** spaces are completely optional. +</div>