param-parse: allow duplicate map keys
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Nov 2019 21:22:49 +0000 (16:22 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Nov 2019 19:24:17 +0000 (14:24 -0500)
commita523aded23926eb48600d0783f90013a580d40e6
treea917a64bb03247e2b712c3741fd26f31357aa19d
parent88cf534320b30567b480d6b434b83a1db015ca7e
param-parse: allow duplicate map keys

It is a bit odd that this is accepted (the second value overwrites the
first):

  -p a=3 -p a=4

but this isn't:

  -p a=3,a=4

Remove the check that prevents duplicate keys from being defined in a
map.

Change-Id: Id39e86bb48ac52c6714db3128b7d767f5347de64
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2423
src/param-parse/param-parse.c
tests/cli/params/test_params
This page took 0.024314 seconds and 4 git commands to generate.