renamed flat format to text
parent
4aa4af73c5
commit
bf0b42efaa
|
@ -30,7 +30,7 @@ class LicensesCommand extends Command
|
||||||
->setName('licenses')
|
->setName('licenses')
|
||||||
->setDescription('Show information about licenses of dependencies')
|
->setDescription('Show information about licenses of dependencies')
|
||||||
->setDefinition(array(
|
->setDefinition(array(
|
||||||
new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: flat or json', 'flat'),
|
new InputOption('format', 'f', InputOption::VALUE_REQUIRED, 'Format of the output: text or json', 'text'),
|
||||||
))
|
))
|
||||||
->setHelp(<<<EOT
|
->setHelp(<<<EOT
|
||||||
The license command displays detailed information about the licenses of
|
The license command displays detailed information about the licenses of
|
||||||
|
@ -61,7 +61,7 @@ EOT
|
||||||
ksort($packages);
|
ksort($packages);
|
||||||
|
|
||||||
switch ($format = $input->getOption('format')) {
|
switch ($format = $input->getOption('format')) {
|
||||||
case 'flat':
|
case 'text':
|
||||||
$formatRowCallback = function (PackageInterface $package) use ($versionParser, $nameLength, $versionLength) {
|
$formatRowCallback = function (PackageInterface $package) use ($versionParser, $nameLength, $versionLength) {
|
||||||
return sprintf(
|
return sprintf(
|
||||||
' %s %s %s',
|
' %s %s %s',
|
||||||
|
|
Loading…
Reference in New Issue