From a6c1b501d14f4c0748456626050b076bd8d59215 Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 6 Nov 2024 14:50:57 -0600 Subject: [PATCH] Better option handling for collab add cmd --- src/Command/Accounts/AddCollabToAcctCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Command/Accounts/AddCollabToAcctCommand.php b/src/Command/Accounts/AddCollabToAcctCommand.php index 9ed081c..85ae0f2 100644 --- a/src/Command/Accounts/AddCollabToAcctCommand.php +++ b/src/Command/Accounts/AddCollabToAcctCommand.php @@ -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 @@ -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(); }