Fix init command to accept proprietary as license
parent
57e9795455
commit
c6271f1f7f
|
@ -400,7 +400,7 @@ EOT
|
||||||
$license
|
$license
|
||||||
);
|
);
|
||||||
$spdx = new SpdxLicenses();
|
$spdx = new SpdxLicenses();
|
||||||
if (!$spdx->validate($license)) {
|
if (!$spdx->validate($license) && $license !== 'proprietary') {
|
||||||
throw new \InvalidArgumentException('Invalid license provided: '.$license.'. Only SPDX license identifiers (https://spdx.org/licenses/) or "proprietary" are accepted.');
|
throw new \InvalidArgumentException('Invalid license provided: '.$license.'. Only SPDX license identifiers (https://spdx.org/licenses/) or "proprietary" are accepted.');
|
||||||
}
|
}
|
||||||
$input->setOption('license', $license);
|
$input->setOption('license', $license);
|
||||||
|
|
Loading…
Reference in New Issue