diff --git a/core/Command/Group/ListCommand.php b/core/Command/Group/ListCommand.php index 5f216a02e1c40..a3622585d1815 100644 --- a/core/Command/Group/ListCommand.php +++ b/core/Command/Group/ListCommand.php @@ -25,9 +25,9 @@ protected function configure() { ->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 @@ protected function configure() { } 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; }