]> xenbits.xensource.com Git - libvirt.git/commit
vshCommandOpt: Allow caller avoiding assert()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 9 Nov 2017 17:06:11 +0000 (18:06 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Jan 2018 17:53:04 +0000 (18:53 +0100)
commita26ff63ae40309114ea763aff3cbcda23cd66e5f
tree2d64f51b7034e190bbc7eb3fd10f364e9bc5f53b
parent69ebc6451808ef1f14af99862fa903f16a5de6d6
vshCommandOpt: Allow caller avoiding assert()

In the future, completer callbacks will receive partially parsed
command (and thus possibly incomplete). However, we still want
them to use command options fetching APIs we already have (e.g.
vshCommandOpt*()) and at the same time don't report any errors
(nor call any asserts).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tools/vsh.c
tools/vsh.h