Skip to content

Commit ec3c818

Browse files
committed
refactor(cli): Infer the command before configuring
This will let the command have some sway in how we configure
1 parent 215e4da commit ec3c818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/cargo/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ Run with 'cargo -Z [FLAG] [COMMAND]'",
175175
return Ok(());
176176
}
177177
};
178+
let exec = Exec::infer(cmd)?;
178179
config_configure(config, &expanded_args, subcommand_args, global_args)?;
179180
super::init_git(config);
180181

181-
let exec = Exec::infer(cmd)?;
182182
exec.exec(config, subcommand_args)
183183
}
184184

0 commit comments

Comments
 (0)