diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-06-09 13:25:31 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-06-09 13:25:31 +0200 |
commit | bf564e2a5a5b19f99d6dad94f099a757f5a044ff (patch) | |
tree | 0b0fa5d5394b0d38fc0a8e7cab9fef84cadfef12 /core/Command | |
parent | b2d21466adc7a6610b7184a879538f395ecc7260 (diff) | |
download | nextcloud-server-bf564e2a5a5b19f99d6dad94f099a757f5a044ff.tar.gz nextcloud-server-bf564e2a5a5b19f99d6dad94f099a757f5a044ff.zip |
Convert command option defaults to strings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Db/ConvertType.php | 4 | ||||
-rw-r--r-- | core/Command/Group/ListCommand.php | 4 | ||||
-rw-r--r-- | core/Command/User/ListCommand.php | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index 47a07b2f324..27f3147b81d 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -132,7 +132,7 @@ class ConvertType extends Command implements CompletionAwareInterface { null, InputOption::VALUE_REQUIRED, 'the maximum number of database rows to handle in a single query, bigger tables will be handled in chunks of this size. Lower this if the process runs out of memory during conversion.', - 1000 + '1000' ) ; } @@ -306,7 +306,7 @@ class ConvertType extends Command implements CompletionAwareInterface { return; } - $chunkSize = $input->getOption('chunk-size'); + $chunkSize = (int)$input->getOption('chunk-size'); $query = $fromDB->getQueryBuilder(); $query->automaticTablePrefix(false); diff --git a/core/Command/Group/ListCommand.php b/core/Command/Group/ListCommand.php index 5531481d3b3..db7493fe8d4 100644 --- a/core/Command/Group/ListCommand.php +++ b/core/Command/Group/ListCommand.php @@ -52,13 +52,13 @@ class ListCommand extends Base { 'l', InputOption::VALUE_OPTIONAL, 'Number of groups to retrieve', - 500 + '500' )->addOption( 'offset', 'o', InputOption::VALUE_OPTIONAL, 'Offset for retrieving groups', - 0 + '0' )->addOption( 'info', 'i', diff --git a/core/Command/User/ListCommand.php b/core/Command/User/ListCommand.php index e28403aa04c..a30b1cae118 100644 --- a/core/Command/User/ListCommand.php +++ b/core/Command/User/ListCommand.php @@ -60,13 +60,13 @@ class ListCommand extends Base { 'l', InputOption::VALUE_OPTIONAL, 'Number of users to retrieve', - 500 + '500' )->addOption( 'offset', 'o', InputOption::VALUE_OPTIONAL, 'Offset for retrieving users', - 0 + '0' )->addOption( 'output', null, |