summaryrefslogtreecommitdiffstats
path: root/core/command/base.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-07-16 17:51:33 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-07-16 17:51:33 +0200
commitd5dcb60e5d796852cf62183c388605793bb89c09 (patch)
tree6762afc1e78a3fd34d9c9e39153f4d096a4e4eaa /core/command/base.php
parentbfb90d10edfc863213522c704f7d0b8bad8c8646 (diff)
downloadnextcloud-server-d5dcb60e5d796852cf62183c388605793bb89c09.tar.gz
nextcloud-server-d5dcb60e5d796852cf62183c388605793bb89c09.zip
Use json_pretty as default for the config lists (for easier export/import)
Diffstat (limited to 'core/command/base.php')
-rw-r--r--core/command/base.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/command/base.php b/core/command/base.php
index 7e61c0cb9ab..7936e683dcc 100644
--- a/core/command/base.php
+++ b/core/command/base.php
@@ -27,6 +27,8 @@ use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class Base extends Command {
+ protected $defaultOutputFormat = 'plain';
+
protected function configure() {
$this
->addOption(
@@ -34,7 +36,7 @@ class Base extends Command {
null,
InputOption::VALUE_OPTIONAL,
'Output format (plain, json or json_pretty, default is plain)',
- 'plain'
+ $this->defaultOutputFormat
)
;
}