Thank for figuring this out!
And to complete the unattended install for Perl SDK, here's the one-liner to modify:
perl -i -0pe 's/(?<a>\$gOption.*)(0;)(.*\n.*)(show)/$+{a}0;\3#\4/' /tmp/vmware-vsphere-cli-distrib/bin/vmware-uninstall-vSphere-CLI.pl
And to run/install:
perl ./vmware-vsphere-cli-distrib/vmware-install.pl <<< yes
Enjoy