- Core\Config::load($this->getArgument(0));
-
- if (!is_null($a->config[$this->getArgument(0)])) {
- foreach ($a->config[$this->getArgument(0)] as $k => $x) {
- $this->out("{$this->getArgument(0)}.{$k} = " . $x);
+ $cat = $this->getArgument(0);
+ Core\Config::load($cat);
+
+ if (!is_null($a->config[$cat])) {
+ $this->out("[{$cat}]");
+ foreach ($a->config[$cat] as $key => $value) {
+ if (is_array($value)) {
+ foreach ($value as $k => $v) {
+ $this->out("{$key}[{$k}] => " . $v);
+ }
+ } else {
+ $this->out("{$key} => " . $value);
+ }