Fix parameter parsing when opts is not specified.