]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vsh: Fix option formatting for 'VHS_OT_ARGV' options
authorPeter Krempa <pkrempa@redhat.com>
Wed, 13 Mar 2024 15:58:52 +0000 (16:58 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Apr 2024 12:24:29 +0000 (14:24 +0200)
commitbaa20d6eb8312af5c741bcd662657e6e5e62f63c
treea5269585f5e3eca8d01b2e6a038f48f0a068dfdf
parente9e3d6dff43cf90d4e5d8836de3b16e84c97400e
vsh: Fix option formatting for 'VHS_OT_ARGV' options

While previous fixes kept the help output unchanged as base for the
refactors it turns out that the formatting of help for argv options is
wrong.

Specifically in SYNOPSIS the non-positional _ARGV would have the option
name in square brackets (which in other cases means that given thing is
optional) despite being required.

Similarly in the DESCRIPTION section positional versions would not show
the optional argument name and also didn't use the three dots to signal
that it can be used multiple times.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/vsh.c