virt-what.in: make option processing portable
authorAssaf Gordon <assafgordon@gmail.com>
Mon, 15 Sep 2014 19:34:06 +0000 (19:34 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 31 Oct 2016 10:14:51 +0000 (06:14 -0400)
commit91eb213e9d0be8b6c0fa3568331b8fa953b3299f
treed6d1f644d2afbab4d9541f9ba9814058a27fd325
parent468ae304e6a02bd433c3f282fab9ab0a2f468269
virt-what.in: make option processing portable

Replace linux-specific 'getopt' usage with manual option parsing.
Because the used option are version simple (help/version) and the only
additional option is undocumented (--test-root), it's easy remove the
'getopt' usage, and make this script portable to BSD systems.

(cherry picked from commit aec669f7b9e4a172c57978597916f8bd97bf26de)
virt-what.in