From a40ab76012406129e919890eacbd10143b2698ce Mon Sep 17 00:00:00 2001 From: Jesse Leite Date: Tue, 8 Dec 2020 13:53:43 -0500 Subject: [PATCH] Fix optional `name` argument. Should be required. --- src/NewCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 3dd94fc..c5ae3c0 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -28,7 +28,7 @@ protected function configure() $this ->setName('new') ->setDescription('Create a new Statamic application') - ->addArgument('name', InputArgument::OPTIONAL) + ->addArgument('name', InputArgument::REQUIRED) ->addOption('starter', null, InputOption::VALUE_OPTIONAL, 'Install a specific starter kit', false) ->addOption('v2', null, InputOption::VALUE_NONE, 'Create a legacy Statamic v2 application (not recommended)') ->addOption('force', 'f', InputOption::VALUE_NONE, 'Force install even if the dirctory already exists');