cli: Support arrays in parameters
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Apr 2019 14:14:08 +0000 (10:14 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
commitb25da3862242657475ef4a8661b16dc8ddf7c7b6
tree90613d60768bf90744f33d50f3de498b0aceb662
parentae48e4926e89a0008d04450f5263191049df5b46
cli: Support arrays in parameters

This patch adds support for arrays in the parameters one can pass to
components on the Babeltrace command line.  For example:

  --params="value=[1,2,\"Hello\"]"

When we are starting to parse a value and the token is a '[', we start
parsing it as an array.  We accept comma-separated values until we reach
the matching ']'. The code should be pretty self-explanatory/commented.

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
cli/babeltrace-cfg-cli-args.c
doc/man/common-cmd-params-format.txt
This page took 0.024992 seconds and 4 git commands to generate.