cli: Support arrays in parameters
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Apr 2019 14:14:08 +0000 (10:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:39 +0000 (18:19 -0400)
commit7b6a21439c0ec822f2fce4fe61b7f1d1f2059273
tree070f90350432569e030780aa315ae9b76e6a1272
parent4b25c966d289b4473375bdc8754c88c8c5760f70
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.028366 seconds and 4 git commands to generate.