[libvirt] [PATCH v3 4/8] vsh: Extract vshCmddefCheckInternals from vshCmddefOptParse

Ján Tomko jtomko at redhat.com
Fri Sep 16 11:58:39 UTC 2016


On Fri, Sep 16, 2016 at 12:50:41PM +0200, Erik Skultety wrote:
>Originally introduced by commit 2432521e which correctly split
>vshCmddefOptParse into command's options validation and options parsing.
>However, command's 'internals' are not tied solely to .options, rather it
>should be about the overall structure, therefore the validation should be
>extracted from vshCmddefOptParse and performed before any attempt to parse the
>command's options.
>
>Signed-off-by: Erik Skultety <eskultet at redhat.com>
>---
> tools/vsh.c | 18 +++++++++++++-----
> 1 file changed, 13 insertions(+), 5 deletions(-)
>

ACK

While this change makes sense on its own, this function is only used for
a run-time check of our data. Maybe the only place to call it should be
the self test command?

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160916/aba3cd28/attachment-0001.sig>


More information about the libvir-list mailing list