cmdline parsing of --ipv4/6 plucked into util