cli: Refactor command line value parsing code
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Apr 2019 14:09:33 +0000 (10:09 -0400)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
commit76749bd13fecbfe1412afeb4831c3599b25f8deb
treeed93f45647e4c70aa91dd93b66417a16b731b73c
parentc7a2dd9949cbb056ec0541cd100a59946b71ee0e
cli: Refactor command line value parsing code

This patch breaks out the code that parses values from the command line
to bt_value objects.  It introduces a new function which returns a
parsed value directly as a bt_value.

This enables the following patch to introduce support for arrays, by
having this function call itself recursively.

No functional changes intended.

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
cli/babeltrace-cfg-cli-args.c
This page took 0.02462 seconds and 4 git commands to generate.