diff --git a/Swirl/src/cli/cli.cpp b/Swirl/src/cli/cli.cpp index d21b36a..76faf06 100644 --- a/Swirl/src/cli/cli.cpp +++ b/Swirl/src/cli/cli.cpp @@ -51,11 +51,6 @@ std::optional cli::get_file() { } std::vector cli::parse() { - if (m_argc <= 1) { - std::cout << USAGE << generate_help() << '\n'; - exit(0); - } - std::vector args(m_argv, m_argv + m_argc); std::vector supplied; diff --git a/Swirl/src/swirl.cpp b/Swirl/src/swirl.cpp index 83d26a6..426e59b 100644 --- a/Swirl/src/swirl.cpp +++ b/Swirl/src/swirl.cpp @@ -61,7 +61,11 @@ int main(int argc, const char** const argv) { else cxx = "g++"; std::optional _file = app.get_file(); - if (!_file.has_value()) { std::cerr << "No Input file\n"; return 1; } + + if (!_file.has_value()) { + std::cerr << "No Input file\n"; return 1; + } + SW_FED_FILE_PATH = *app.get_file(); if (!std::filesystem::exists(SW_FED_FILE_PATH)) {