[libvirt] [PATCH 3/8] virsh: better handling the boolean option

2010-10-12 Thread Lai Jiangshan
in old code the following commands are equivalent: virsh # dumpxml --update-cpu=vm1 virsh # dumpxml --update-cpu vm1 because the old code split the option argument into 2 parts: --update-cpu=vm1 is split into update-cpu and vm1, and update-cpu is a boolean option, so the parser takes vm1

Re: [libvirt] [PATCH 3/8] virsh: better handling the boolean option

2010-10-12 Thread Eric Blake
On 10/12/2010 01:13 AM, Lai Jiangshan wrote: in old code the following commands are equivalent: virsh # dumpxml --update-cpu=vm1 virsh # dumpxml --update-cpu vm1 because the old code split the option argument into 2 parts: --update-cpu=vm1 is split into update-cpu and vm1, and