]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Break vshCmddefOptParse into helper functions
authorNishith Shah <nishithshah.2211@gmail.com>
Fri, 8 Jul 2016 12:56:02 +0000 (18:26 +0530)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 11 Jul 2016 06:48:05 +0000 (08:48 +0200)
commit2432521e03ae942287d946247b1a5ea070c113c3
tree3c6fc0f7dea29a92847b354eb64e2235928efe94
parent32916b1699489584f66a53eaac322313803cabcc
virsh: Break vshCmddefOptParse into helper functions

Decompose vshCmddefOptParse into two helper functions, vshCmddefOptFill
and vshCmddefCheckInternals.

vshCmddefCheckInternals checks if the internal command definitions are
correct or not.

vshCmddefOptFill keeps track of the required options and mandatory
arguments through opts_required and opts_need_arg.

Signed-off-by: Nishith Shah <nishithshah.2211@gmail.com>
tools/vsh.c