We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8cadf5 commit 0f01d61Copy full SHA for 0f01d61
src/bin/cargo/commands/install.rs
@@ -75,6 +75,8 @@ continuous integration systems.",
75
}
76
77
pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
78
+ let registry = args.registry(config)?;
79
+
80
config.reload_rooted_at_cargo_home()?;
81
let mut compile_opts = args.compile_options(config, CompileMode::Build)?;
82
@@ -103,8 +105,8 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
103
105
} else if krates.is_empty() {
104
106
from_cwd = true;
107
SourceId::for_path(config.cwd())?
- } else if let Some(registry) = args.value_of("registry") {
- SourceId::alt_registry(config, registry)?
108
+ } else if let Some(registry) = registry {
109
+ SourceId::alt_registry(config, ®istry)?
110
} else {
111
SourceId::crates_io(config)?
112
};
0 commit comments