ksgen: fix error parsing --arg=value option

Change-Id: Ic8b36505ae36e81f605ca309d52997a0f4021574