summaryrefslogtreecommitdiff
path: root/pear/PEAR/Frontend/CLI.php
diff options
context:
space:
mode:
Diffstat (limited to 'pear/PEAR/Frontend/CLI.php')
-rw-r--r--pear/PEAR/Frontend/CLI.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/pear/PEAR/Frontend/CLI.php b/pear/PEAR/Frontend/CLI.php
index 0c352e45ae..e9c4cc9eab 100644
--- a/pear/PEAR/Frontend/CLI.php
+++ b/pear/PEAR/Frontend/CLI.php
@@ -409,13 +409,21 @@ class PEAR_Frontend_CLI extends PEAR
array("Description", $data['description']),
),
);
- default:
+ default: {
if (is_array($data))
{
$this->_startTable($data);
- $opts = array(0 => array('wrap' => 25),
- 1 => array('wrap' => 55)
- );
+ $count = count($data['data'][0]);
+ if ($count == 2) {
+ $opts = array(0 => array('wrap' => 25),
+ 1 => array('wrap' => 55)
+ );
+ } else {
+ $opts = array(0 => array('wrap' => 20),
+ 1 => array('wrap' => 20),
+ 2 => array('wrap' => 40)
+ );
+ }
if (isset($data['headline']) && is_array($data['headline'])) {
$this->_tableRow($data['headline'],
array('bold' => true),
@@ -428,6 +436,7 @@ class PEAR_Frontend_CLI extends PEAR
} else {
$this->_displayLine($data);
}
+ }
}
}