Skip to content

Commit 98b1935

Browse files
Merge pull request #57 from godaddy-wordpress/ds_collabfix3
correct a couple option handlers in new collabs cmd
2 parents 193e45f + dc69492 commit 98b1935

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Command/Accounts/AddCollabToAcctCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ public function configure()
4444
public function execute(InputInterface $input, OutputInterface $output): int
4545
{
4646
$newAcctEmail = $input->getArgument('email');
47-
$newAcctName = $input->getArgument('displayname');
47+
$newAcctName = $input->getOption('displayname');
4848
if ($newAcctName === 0) { $newAcctName = $input->getArgument('email'); }
4949
$newAcctId = $input->getArgument('accountId');
5050
$newAcctRole = $this->roleToInt($input->getArgument('roleId'));
5151
if ($newAcctRole === false) {
5252
$output->writeln ("Invalid role, must be one of 'app-only-minimal', 'app-only', 'billing', 'tech', 'sub-admin', 'super-admin', 'owner'");
5353
return Command::FAILURE;
5454
}
55-
$newAppId = $input->getArgument('app');
55+
$newAppId = $input->getOption('app');
5656
$token = $this->token->token;
5757

5858
$r = $this->api->addCollaboratorToAcct($token,

0 commit comments

Comments
 (0)