diff --git a/cli.php b/cli.php index 6c87a64..1c0a1c4 100644 --- a/cli.php +++ b/cli.php @@ -362,7 +362,14 @@ class cli $r->auth["email"] = "cli"; $s = call_user_func_array(array($r, $method), $argv); if ($this->QUIET === false || $s !== "" && $s !== array () && $s !== null) - var_dump ($s); + { + if (is_string ($s)) + echo $s; + elseif (is_array ($s)) + print_r ($s); + else + var_dump ($s); + } } catch (Exception $e) {