]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virsh: omit OPTION section in 'virsh help' if no option exists
authorZhang Xiaohe <zhangxh@cn.fujitsu.com>
Wed, 22 May 2013 03:15:45 +0000 (11:15 +0800)
committerEric Blake <eblake@redhat.com>
Wed, 22 May 2013 22:17:24 +0000 (16:17 -0600)
commitc0955c320609588c7caab3f237d28ef0e8802f92
tree81886768c17c91e153472553bc9e0e6ac9ad1105
parent6ac6f59c98813efac3defaaf5c5b12e9f387c228
virsh: omit OPTION section in 'virsh help' if no option exists

Don't print 'OPTION' if there's no options. Just behaves as DESCRIPTION
does.
This mostly affects 'interface' command group.

Signed-off-by: Zhang Xiaohe <zhangxh@cn.fujitsu.com>
Reported-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh.c