Suggest manifest for --features help

Suggested by ehuss
This commit is contained in:
Ivan Tham 2020-10-14 10:00:02 +08:00 committed by GitHub
parent ca91c5db5c
commit 894dbbc997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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
);
}

View file

@ -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();