mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 23:59:27 -04:00
Convert command option defaults to strings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
b2d21466ad
commit
bf564e2a5a
4 changed files with 8 additions and 8 deletions
|
|
@ -73,14 +73,14 @@ class Search extends Command {
|
|||
null,
|
||||
InputOption::VALUE_REQUIRED,
|
||||
'The offset of the result set. Needs to be a multiple of limit. defaults to 0.',
|
||||
0
|
||||
'0'
|
||||
)
|
||||
->addOption(
|
||||
'limit',
|
||||
null,
|
||||
InputOption::VALUE_REQUIRED,
|
||||
'limit the results. 0 means no limit, defaults to 15',
|
||||
15
|
||||
'15'
|
||||
)
|
||||
;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue