cli: Refactor command line value parsing code
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Apr 2019 14:09:33 +0000 (10:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:39 +0000 (18:19 -0400)
commite24a0c1bd5b916b40a74f3183aa58ed93206b398
tree49ffd837a4bca10ea9c827412c4c0a2a93e257b7
parent663d08793c88d24492e95cb0cc205130c80020b5
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.026099 seconds and 4 git commands to generate.