diff --git a/src/main.rs b/src/main.rs index 94c44ba4d..15f05ee4c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -829,7 +829,7 @@ fn run() -> Result<(), failure::Error> { .unwrap_or(commands::DEFAULT_CONFIG_PATH), ); let manifest = settings::toml::Manifest::new(config_path)?; - let env = matches.value_of("env"); + let env = subcommand_matches.unwrap().value_of("env"); let env_zone_id = if let Some(environment) = manifest.get_environment(env)? { environment.zone_id.as_ref()