pub fn registry_logout(config: &Config, reg: Option<&str>) -> CargoResult<()>