You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -19,15 +20,16 @@ protected function configure()
19
20
$this
20
21
->setHelp('Install a new package')
21
22
->setDescription('Add a new package to your leaf app')
22
-
->addArgument('packages', InputArgument::IS_ARRAY, 'package(s) to install. Can also include a version constraint, e.g. foo/bar or foo/[email protected]');
23
+
->addArgument('packages', InputArgument::IS_ARRAY, 'package(s) to install. Can also include a version constraint, e.g. foo/bar or foo/[email protected]')
24
+
->addOption('dev', 'd', InputOption::VALUE_NONE, 'Install package as a dev dependency');
23
25
}
24
26
25
27
protectedfunctionexecute(InputInterface$input, OutputInterface$output): int
26
28
{
27
29
$packages = $input->getArgument('packages');
28
30
29
31
if (count($packages)) {
30
-
return$this->install($packages, $output);
32
+
return$this->install($packages, $input, $output);
31
33
}
32
34
33
35
return$this->installDependencies($output);
@@ -66,18 +68,19 @@ protected function installDependencies($output)
0 commit comments