mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Add required validation on prompt
This commit is contained in:
parent
7cf8b8c894
commit
4dbaaa1222
@ -109,13 +109,7 @@ class CreateSeeder extends BaseCommand
|
||||
|
||||
if (empty($name))
|
||||
{
|
||||
$name = CLI::prompt(lang('Seed.nameFile'));
|
||||
}
|
||||
|
||||
if (empty($name))
|
||||
{
|
||||
CLI::error(lang('Seed.badName'));
|
||||
return;
|
||||
$name = CLI::prompt(lang('Seed.nameFile'), null, 'required');
|
||||
}
|
||||
|
||||
$ns = $params['-n'] ?? CLI::getOption('n');
|
||||
|
Loading…
x
Reference in New Issue
Block a user