cli: Support arrays in parameters
[babeltrace.git] / doc / man / common-cmd-params-format.txt
CommitLineData
838dd456
PP
1[[params-fmt]]
2Parameters format
3~~~~~~~~~~~~~~~~~
4The format of the 'PARAMS' option's argument is a comma-separated
5list of `NAME=VALUE` assignments:
6
7[verse]
8'NAME'='VALUE'[,'NAME'='VALUE']...
9
10'NAME'::
11 Parameter name (C{nbsp}identifier plus the `:`, `.`, and `-` characters).
12
13'VALUE'::
14 One of:
15+
16--
17* `null`, `nul`, `NULL`: null value.
18
19* `true`, `TRUE`, `yes`, `YES`: true boolean value.
20
21* `false`, `FALSE`, `no`, `NO`: false boolean value.
22
23* Binary (`0b` prefix), octal (`0` prefix), decimal, or hexadecimal
24 (`0x` prefix) signed 64-bit integer.
25
26* Double precision floating point number (scientific notation is
27 accepted).
28
29* Unquoted string with no special characters, and not matching any of
30 the null and boolean value symbols above.
31
32* Double-quoted string (accepts escape characters).
33
7b6a2143
SM
34* Array, formatted as an opening `[`, a list of comma-separated values
35 (as described by the current list) and a closing `]`.
36
838dd456
PP
37You may put whitespaces around the individual `=` (assignment) and `,`
38(separator) characters.
39--
40
41Example:
42
43----
44babeltrace ... --params='many=null, fresh=yes, condition=false,
45 squirrel=-782329, observe=3.14,
46 simple=beef, needs-quotes="some string",
7b6a2143
SM
47 escape.chars-are:allowed="a \" quote",
48 things=[1, "2", 3]'
838dd456
PP
49----
50
51IMPORTANT: Like in the example above, make sure to single-quote the
52whole argument when you run this command from a shell.
This page took 0.026789 seconds and 4 git commands to generate.