param-parse: allow duplicate map keys
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Nov 2019 21:22:49 +0000 (16:22 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Nov 2019 23:06:30 +0000 (18:06 -0500)
commitb1df972d4e6c35e54562fa27083632514d38d354
treec70d5621b68399180e6df5b2c8bef5fb974f8864
parent3321d9b00a7554e189aed2377c2b9caa0f201800
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.024156 seconds and 4 git commands to generate.