Cleanup
This commit is contained in:
parent
e7eecd354a
commit
d4f69522fc
1 changed files with 8 additions and 9 deletions
|
@ -128,16 +128,15 @@
|
||||||
{
|
{
|
||||||
$project_path = $args['path'] ?? $args['p'];
|
$project_path = $args['path'] ?? $args['p'];
|
||||||
}
|
}
|
||||||
|
elseif(is_file(getcwd() . DIRECTORY_SEPARATOR . 'project.json'))
|
||||||
|
{
|
||||||
|
$project_path = getcwd();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if(is_file(getcwd() . DIRECTORY_SEPARATOR . 'project.json'))
|
{
|
||||||
{
|
Console::outError('Missing option: --path|-p, please specify the path to the project', true, 1);
|
||||||
$project_path = getcwd();
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
Console::outError('Missing option: --path|-p, please specify the path to the project', true, 1);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($args['name']) || isset($args['n']))
|
if(isset($args['name']) || isset($args['n']))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue