Skip to content

Commit

Permalink
correct a couple option handlers in new collabs cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmith4-godaddy committed Nov 13, 2024
1 parent 193e45f commit dc69492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/Accounts/AddCollabToAcctCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ 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'));
if ($newAcctRole === false) {
$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,
Expand Down

0 comments on commit dc69492

Please sign in to comment.