Skip to content

Commit

Permalink
Better option handling for collab add cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmith4-godaddy committed Nov 6, 2024
1 parent 4e71b9a commit a6c1b50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Command/Accounts/AddCollabToAcctCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Pagely\AtomicClient\Command\OauthCommandTrait;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

class AddCollabToAcctCommand extends Command
Expand All @@ -34,8 +35,8 @@ public function configure()
->addArgument('email', InputArgument::REQUIRED, 'Email address')
->addArgument('accountId', InputArgument::REQUIRED, 'Account ID')
->addArgument('roleId', InputArgument::REQUIRED, 'Role')
->addArgument('appId', InputArgument::OPTIONAL, 'App ID (acct-level if omitted)', 0)
->addArgument('displayName', InputArgument::OPTIONAL, 'Display Name', 0)
->addOption('appId', null, InputOption::VALUE_OPTIONAL, 'App ID (acct-level if omitted)', 0)
->addOption('displayName', null, InputOption::VALUE_OPTIONAL, 'Display Name', 0)
;
$this->addOauthOptions();
}
Expand Down

0 comments on commit a6c1b50

Please sign in to comment.