OSDN Git Service

object: Make option help nicer to read
authorMax Reitz <mreitz@redhat.com>
Fri, 19 Oct 2018 16:49:28 +0000 (18:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 5 Nov 2018 14:18:06 +0000 (15:18 +0100)
commitda3273adcde967b53de6bb6d6b4af607cbccff8a
tree99f8eddb6b1c6f9f488f0a1363a5aa5bb234b9f5
parent9c2762b406b088608561a72a85d52a036c7bf29a
object: Make option help nicer to read

Just like in qemu_opts_print_help(), print the object name as a caption
instead of on every single line, indent all options, add angle brackets
around types, and align the descriptions after 24 characters.

Also, indent every object name in the list of available objects.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
vl.c