Skip to content

Commit 620bfbd

Browse files
committed
Update CreateCommand.php
1 parent a148a8b commit 620bfbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebFiori/Framework/Cli/Commands/CreateCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ private function getWhat() {
138138
$options['api-test'] = 'Web service test case.';
139139
$options['migration'] = 'Database migration.';
140140
$options['q'] = 'Quit.';
141-
$what = strtolower($this->getArgValue('--c'));
141+
$what = $this->getArgValue('--c');
142142
$answer = null;
143143

144144
if ($what !== null) {
145-
$answer = $options[$what] ?? null;
145+
$answer = $options[strtolower($what)] ?? null;
146146

147147
if ($answer === null) {
148148
$this->warning('The argument --c has invalid value.');

0 commit comments

Comments
 (0)