Partially implementing parseOptions