Skip to content

Commit c882b8e

Browse files
authored
Add actionable help message for --features
Fix #8770
1 parent 90594df commit c882b8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ pub trait ArgMatchesExt {
308308
if self._is_present(flag) {
309309
bail!(
310310
"--{} is not allowed in the root of a virtual workspace\n\
311-
note: while this was previously accepted, it didn't actually do anything",
311+
note: while this was previously accepted, it didn't actually do anything\n\
312+
help: try cd into the package and run cargo command",
312313
flag
313314
);
314315
}

0 commit comments

Comments
 (0)