Update manual pages for 2.0.0-rc1
[babeltrace.git] / doc / man / common-cmd-params-format.txt
CommitLineData
e70712b3
PP
1The format of 'PARAMS' is a comma-separated list of 'NAME'='VALUE'
2assignments:
0659f3af
PP
3
4[verse]
5'NAME'='VALUE'[,'NAME'='VALUE']...
6
7'NAME'::
e70712b3
PP
8 Parameter name (C~identifier plus the `:`, `.`, and `-`
9 characters).
0659f3af
PP
10
11'VALUE'::
12 One of:
13+
14--
15* `null`, `nul`, `NULL`: null value.
16
17* `true`, `TRUE`, `yes`, `YES`: true boolean value.
18
19* `false`, `FALSE`, `no`, `NO`: false boolean value.
20
21* Binary (`0b` prefix), octal (`0` prefix), decimal, or hexadecimal
fdd3a2da 22 (`0x` prefix) unsigned (with `+` prefix) or signed 64-bit integer.
0659f3af
PP
23
24* Double precision floating point number (scientific notation is
25 accepted).
26
27* Unquoted string with no special characters, and not matching any of
28 the null and boolean value symbols above.
29
30* Double-quoted string (accepts escape characters).
31
e70712b3
PP
32* Array, formatted as an opening `[`, a comma-separated list of 'VALUE',
33 and a closing `]`.
b25da386 34
e70712b3
PP
35* Map, formatted as an opening `{`, a comma-separated list of
36 'NAME'='VALUE' assignments, and a closing `}`.
37
38You may put whitespaces around the individual `=` (assignment), `,`
39(separator), `[` (array beginning), `]` (array end), `{` (map
40beginning), and `}` (map end) characters.
0659f3af
PP
41--
42
43Example:
44
e70712b3 45[role="term"]
0659f3af 46----
e70712b3
PP
47--params='many=null, fresh=yes, condition=false, squirrel=-782329,
48 play=+23, observe=3.14, simple=beef,
49 needs-quotes="some string",
50 escape.chars-are:allowed="a \" quote",
51 things=[1, "hello", 2.71828],
52 frog={slow=2, bath=[bike, 23], blind=NO}'
0659f3af
PP
53----
54
55IMPORTANT: Like in the example above, make sure to single-quote the
e70712b3
PP
56whole argument when you run this command from a shell, as it can contain
57many special characters.
This page took 0.037838 seconds and 4 git commands to generate.