mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
Merge pull request #3276 from dten/allow-p
allow specifying package with -p
This commit is contained in:
@@ -56,7 +56,7 @@ fn execute() -> i32 {
|
||||
let mut is_package_arg = false;
|
||||
for arg in env::args().skip(2).take_while(|a| a != "--") {
|
||||
if arg.starts_with('-') {
|
||||
is_package_arg = arg.starts_with("--package");
|
||||
is_package_arg = arg.starts_with("--package") | arg.starts_with("-p");
|
||||
} else if !is_package_arg {
|
||||
print_usage_to_stderr(&opts, &format!("Invalid argument: `{}`.", arg));
|
||||
return FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user