Merge pull request #3276 from dten/allow-p

allow specifying package with -p
This commit is contained in:
Nick Cameron 2019-01-07 17:28:13 +13:00 committed by GitHub
commit c357eee8bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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