Closed
Description
The code for printing default values of input options is:
$default = sprintf('<comment> (default: %s)</comment>', is_bool($argument->getDefault()) || is_array($argument->getDefault()) ? str_replace("\n", '', var_export($argument->getDefault(), true)): $argument->getDefault());
The use of var_export
for arrays is not a good choice, as it produces quite verbose and unreadable output:
var_export(array('foo'));
Produces:
array ( 0 => 'foo',)
Better would be:
array("foo")
Or even:
[ "foo" ]