]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vshCmddefHelp: Refactor printing of help (argument description)
authorPeter Krempa <pkrempa@redhat.com>
Fri, 1 Mar 2024 13:51:46 +0000 (14:51 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 13 Mar 2024 14:02:52 +0000 (15:02 +0100)
commita191c5d455a80f557f8454dfec43755c50e639bf
tree87995075c1c2b15b8a3b7c82d72ebd0bd3575fea
parente879e63f5b37bce80855a2f23cf5a1c29b855375
vshCmddefHelp: Refactor printing of help (argument description)

Extract flag check to a separate variable and replace ternary operators
by normal conditions and use allocated buffer instead of a static one
to improve readability.

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