Re: [Qemu-devel] [PATCH] qmp-shell: Fix example with objects as values

2019-01-14 Thread Eduardo Habkost
On Fri, Jan 11, 2019 at 09:37:47AM -0500, Cleber Rosa wrote: > > > On 1/8/19 7:33 AM, Anthony PERARD wrote: > > The example shown that is suppose to let a user passes an object/array as > > argument doesn't work. The quotes get removed by shlex.split() and then > > both JSON parser complains. Fix

Re: [Qemu-devel] [PATCH] qmp-shell: Fix example with objects as values

2019-01-11 Thread Cleber Rosa
On 1/8/19 7:33 AM, Anthony PERARD wrote: > The example shown that is suppose to let a user passes an object/array as > argument doesn't work. The quotes get removed by shlex.split() and then > both JSON parser complains. Fix the example by adding quotes and add > examples with boolean and array.

[Qemu-devel] [PATCH] qmp-shell: Fix example with objects as values

2019-01-08 Thread Anthony PERARD
The example shown that is suppose to let a user passes an object/array as argument doesn't work. The quotes get removed by shlex.split() and then both JSON parser complains. Fix the example by adding quotes and add examples with boolean and array. Signed-off-by: Anthony PERARD --- scripts/qmp/qm