Browse Source
Convert command option defaults to strings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pull/27410/head
Christoph Wurst
4 years ago
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
4 changed files with
8 additions and
8 deletions
apps/user_ldap/lib/Command/Search.php
core/Command/Db/ConvertType.php
core/Command/Group/ListCommand.php
core/Command/User/ListCommand.php
@ -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 ,