]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virt-xml-validate: add --help/--version option
authorEric Blake <eblake@redhat.com>
Mon, 19 Aug 2013 22:26:41 +0000 (16:26 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 20 Aug 2013 02:23:39 +0000 (20:23 -0600)
commitb2ea248ef7c715aa2a65657ed2e91968538ae07b
tree5e95ae8cd0a226d5563553f74d1e33671d0773b7
parent0192fd671187c3c4834b42aa4c30fe756a042684
virt-xml-validate: add --help/--version option

All good tools should have --help and --version output :)

Furthermore, we want to ensure a failed exit if xmllint fails,
or even for 'virt-xml-validate > /dev/full'.

* tools/virt-xml-validate.in: Add option parsing.  Output errors
to stderr.  Update documentation to match.
* tools/Makefile.am (virt-xml-validate): Substitute version.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/Makefile.am
tools/virt-xml-validate.in