mirror of
https://github.com/nextcloud/server.git
synced 2025-05-03 21:40:31 +00:00
fix: Clearly document that the argument is a search string
It is not an exact match on the group id Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
This commit is contained in:
parent
c7acab5bf7
commit
5e97a46f4c
1 changed files with 3 additions and 3 deletions
|
@ -25,9 +25,9 @@ class ListCommand extends Base {
|
|||
->setName('group:list')
|
||||
->setDescription('list configured groups')
|
||||
->addArgument(
|
||||
'groupid',
|
||||
'searchstring',
|
||||
InputArgument::OPTIONAL,
|
||||
'Group id to show only the members of that group',
|
||||
'Filter the groups to only those matching the search string',
|
||||
''
|
||||
)
|
||||
->addOption(
|
||||
|
@ -57,7 +57,7 @@ class ListCommand extends Base {
|
|||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$groups = $this->groupManager->search((string)$input->getArgument('groupid'), (int)$input->getOption('limit'), (int)$input->getOption('offset'));
|
||||
$groups = $this->groupManager->search((string)$input->getArgument('searchstring'), (int)$input->getOption('limit'), (int)$input->getOption('offset'));
|
||||
$this->writeArrayInOutputFormat($input, $output, $this->formatGroups($groups, (bool)$input->getOption('info')));
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue