Implement missing legacy options

This commit is contained in:
crazywhalecc 2025-12-04 21:19:11 +08:00
parent 71d803d36f
commit 2f8570b59e
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -68,7 +68,8 @@ class DownloadCommand extends BaseCommand
}
// resolve package dependencies and get artifacts directly
$resolved = DependencyResolver::resolve($packages, [], !$this->getOption('without-suggests'));
$suggests = !($this->getOption('without-suggests') || $this->getOption('without-suggestions'));
$resolved = DependencyResolver::resolve($packages, [], $suggests);
foreach ($resolved as $pkg_name) {
$pkg = PackageLoader::getPackage($pkg_name);
if ($artifact = $pkg->getArtifact()) {