mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 19:22:33 +00:00
Suggest manifest for --features help
Suggested by ehuss
This commit is contained in:
parent
ca91c5db5c
commit
894dbbc997
|
@ -309,7 +309,7 @@ pub trait ArgMatchesExt {
|
|||
bail!(
|
||||
"--{} is not allowed in the root of a virtual workspace\n\
|
||||
note: while this was previously accepted, it didn't actually do anything\n\
|
||||
help: try cd into the package and run cargo command",
|
||||
help: change the current directory to the package directory, or use the --manifest-path flag to the path of the package",
|
||||
flag
|
||||
);
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ fn virtual_no_default_features() {
|
|||
"\
|
||||
[ERROR] --no-default-features is not allowed in the root of a virtual workspace
|
||||
[NOTE] while this was previously accepted, it didn't actually do anything
|
||||
[HELP] try cd into the package and run cargo command
|
||||
[HELP] change the current directory to the package directory, or use the --manifest-path flag to the path of the package
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
@ -126,7 +126,7 @@ fn virtual_features() {
|
|||
"\
|
||||
[ERROR] --features is not allowed in the root of a virtual workspace
|
||||
[NOTE] while this was previously accepted, it didn't actually do anything
|
||||
[HELP] try cd into the package and run cargo command
|
||||
[HELP] change the current directory to the package directory, or use the --manifest-path flag to the path of the package
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
@ -204,7 +204,7 @@ fn virtual_with_specific() {
|
|||
"\
|
||||
[ERROR] --features is not allowed in the root of a virtual workspace
|
||||
[NOTE] while this was previously accepted, it didn't actually do anything
|
||||
[HELP] try cd into the package and run cargo command
|
||||
[HELP] change the current directory to the package directory, or use the --manifest-path flag to the path of the package
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
@ -374,7 +374,7 @@ fn virtual_member_slash() {
|
|||
"\
|
||||
[ERROR] --features is not allowed in the root of a virtual workspace
|
||||
[NOTE] while this was previously accepted, it didn't actually do anything
|
||||
[HELP] try cd into the package and run cargo command
|
||||
[HELP] change the current directory to the package directory, or use the --manifest-path flag to the path of the package
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
|
Loading…
Reference in a new issue