Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Command/Room/Create.php')
-rw-r--r--lib/Command/Room/Create.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Command/Room/Create.php b/lib/Command/Room/Create.php
index 7ee58c646..3113fae1c 100644
--- a/lib/Command/Room/Create.php
+++ b/lib/Command/Room/Create.php
@@ -58,9 +58,10 @@ class Create extends Base {
'name',
InputArgument::REQUIRED,
'The name of the room to create'
- )->addArgument(
+ )->addOption(
'user',
- InputArgument::OPTIONAL | InputArgument::IS_ARRAY,
+ null,
+ InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY,
'Invites the given users to the room to create'
)->addOption(
'group',
@@ -102,7 +103,7 @@ class Create extends Base {
protected function execute(InputInterface $input, OutputInterface $output): ?int {
$name = $input->getArgument('name');
- $users = $input->getArgument('user');
+ $users = $input->getOption('user');
$groups = $input->getOption('group');
$circles = $input->getOption('circle');
$public = $input->getOption('public');