From dc69492c8fb502e699eece172ddc7f048684dfb7 Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 13 Nov 2024 15:37:07 -0600 Subject: [PATCH] correct a couple option handlers in new collabs cmd --- src/Command/Accounts/AddCollabToAcctCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/Accounts/AddCollabToAcctCommand.php b/src/Command/Accounts/AddCollabToAcctCommand.php index 41f3c3b..5986853 100644 --- a/src/Command/Accounts/AddCollabToAcctCommand.php +++ b/src/Command/Accounts/AddCollabToAcctCommand.php @@ -44,7 +44,7 @@ public function configure() public function execute(InputInterface $input, OutputInterface $output): int { $newAcctEmail = $input->getArgument('email'); - $newAcctName = $input->getArgument('displayname'); + $newAcctName = $input->getOption('displayname'); if ($newAcctName === 0) { $newAcctName = $input->getArgument('email'); } $newAcctId = $input->getArgument('accountId'); $newAcctRole = $this->roleToInt($input->getArgument('roleId')); @@ -52,7 +52,7 @@ public function execute(InputInterface $input, OutputInterface $output): int $output->writeln ("Invalid role, must be one of 'app-only-minimal', 'app-only', 'billing', 'tech', 'sub-admin', 'super-admin', 'owner'"); return Command::FAILURE; } - $newAppId = $input->getArgument('app'); + $newAppId = $input->getOption('app'); $token = $this->token->token; $r = $this->api->addCollaboratorToAcct($token,