From d4f69522fc45c1a197fdbaf35622e0a1749d3de9 Mon Sep 17 00:00:00 2001 From: Netkas Date: Fri, 1 Sep 2023 04:31:24 -0400 Subject: [PATCH] Cleanup --- src/ncc/CLI/Management/ProjectMenu.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/ncc/CLI/Management/ProjectMenu.php b/src/ncc/CLI/Management/ProjectMenu.php index 1f0dff3..ac187dd 100644 --- a/src/ncc/CLI/Management/ProjectMenu.php +++ b/src/ncc/CLI/Management/ProjectMenu.php @@ -128,16 +128,15 @@ { $project_path = $args['path'] ?? $args['p']; } + elseif(is_file(getcwd() . DIRECTORY_SEPARATOR . 'project.json')) + { + $project_path = getcwd(); + } else - if(is_file(getcwd() . DIRECTORY_SEPARATOR . 'project.json')) - { - $project_path = getcwd(); - } - else - { - Console::outError('Missing option: --path|-p, please specify the path to the project', true, 1); - return; - } + { + Console::outError('Missing option: --path|-p, please specify the path to the project', true, 1); + return; + } if(isset($args['name']) || isset($args['n'])) {