Skip to content

Commit

Permalink
fix: Clearly document that the argument is a search string
Browse files Browse the repository at this point in the history
It is not an exact match on the group id

Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc authored Feb 3, 2025
1 parent c7acab5 commit 5e97a46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/Command/Group/ListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 5e97a46

Please sign in to comment.