]> xenbits.xensource.com Git - libvirt.git/commit
add VSH_OFLAG_REQ_OPT options
authorLai Jiangshan <laijs@cn.fujitsu.com>
Tue, 7 Jun 2011 09:11:10 +0000 (17:11 +0800)
committerEric Blake <eblake@redhat.com>
Tue, 14 Jun 2011 17:40:52 +0000 (11:40 -0600)
commitfb246acfa7950929111537fff917af9e3ade552b
tree67b3df7d6f2ddf3ab8f1976f25747030057e55b9
parent6cf77ca7bf34efc48de3e68b401ba4f5ef529ffe
add VSH_OFLAG_REQ_OPT options

A VSH_OFLAG_REQ_OPT option means --optionname is required when used.
It will kill any ambiguity, even a !VSH_OFLAG_REQ option listed before
a VSH_OFLAG_REQ option, if the !VSH_OFLAG_REQ option is a
VSH_OFLAG_REQ_OPT option.

It will help us use optional argument with VSH_OT_ARGV argument.

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
tools/virsh.c