From 4906322e41105a1465ce5d564d972d2e38cabdf6 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 19 Feb 2024 08:00:00 +0000 Subject: [PATCH] Add the type option --- versa | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/versa b/versa index abe582c..64b19ea 100755 --- a/versa +++ b/versa @@ -7,7 +7,18 @@ use Symfony\Component\Console\SingleCommandApplication; $application = new SingleCommandApplication(); -$application->setCode(function (): int { +$application->addOption( + name: 'type', + mode: InputArgument::OPTIONAL, + description: 'The project type', + suggestedValues: ['drupal', 'sculpin'], +); + +$application->setCode(function (InputInterface $input): int { + dd( + $input->getOption('type'), + ); + return 0; });