1
0
Fork 0

renamed flat format to text

pull/2075/head
Benoît Merlet 2013-07-11 17:59:57 +02:00
parent 4aa4af73c5
commit bf0b42efaa
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class LicensesCommand extends Command
->setName('licenses')
->setDescription('Show information about licenses of dependencies')
->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
The license command displays detailed information about the licenses of
@ -61,7 +61,7 @@ EOT
ksort($packages);
switch ($format = $input->getOption('format')) {
case 'flat':
case 'text':
$formatRowCallback = function (PackageInterface $package) use ($versionParser, $nameLength, $versionLength) {
return sprintf(
' %s %s %s',