lib/command transformOptions now only takes valid options