aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2025-02-03 11:07:41 +0100
committerGitHub <noreply@github.com>2025-02-03 11:07:41 +0100
commit5e97a46f4c141c950bc2c73e2cd5a2f0825e451c (patch)
treea026d2291543ad0c13c379458605e84f040de9c8
parentc7acab5bf73dc96b883c1e9d7bd736769185fb84 (diff)
downloadnextcloud-server-5e97a46f4c141c950bc2c73e2cd5a2f0825e451c.tar.gz
nextcloud-server-5e97a46f4c141c950bc2c73e2cd5a2f0825e451c.zip
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>
-rw-r--r--core/Command/Group/ListCommand.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Command/Group/ListCommand.php b/core/Command/Group/ListCommand.php
index 5f216a02e1c..a3622585d18 100644
--- a/core/Command/Group/ListCommand.php
+++ b/core/Command/Group/ListCommand.php
@@ -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;
}