You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -172,6 +228,12 @@ public function getOptionParser() {
172
228
'default' => false,
173
229
'help' => __('Always use bash variable deinfition formatting. When enabled, output will be formatted as `KEY_NAME=\'value\'`. This option is auto-enabled if multiple keys are provided on the command line, or if the value for the requested key is itself an array. When multiple values are returned, each will be output on its own line.')
174
230
))
231
+
->addOption('serialize', array(
232
+
'short' => 's',
233
+
'boolean' => true,
234
+
'default' => false,
235
+
'help' => __('Encode all output using PHP\'s `serialize()` method. Makes the Shell\'s output suitable for consumption by other PHP console scripts. Always overrides the --bash option. A single requested key will be serialized directly. Multiple requested keys will be combined into an associative array and then serialized.')
236
+
))
175
237
->description(__('Provides CLI access to variables defined in the Configure class of the host
176
238
CakePHP application. Will output the value of any keys passed as arguments.
177
239
Equivelant to `Configure::read(\'Key.Name\')`.'));
0 commit comments