diff --git a/apps/seastack/run_seastack.cpp b/apps/seastack/run_seastack.cpp index c1b065b..56538a3 100644 --- a/apps/seastack/run_seastack.cpp +++ b/apps/seastack/run_seastack.cpp @@ -27,7 +27,7 @@ namespace { static void PrintBanner() noexcept { seastack::infra::cli::ShowBanner(); } -static void PrintVersion() noexcept { seastack::infra::cli::LogInfo(std::string(SEASTACK_NAME) + " version " + SEASTACK_VERSION_FULL); } +static void PrintVersion() noexcept { seastack::infra::cli::LogInfo(std::string("SEA-Stack version ") + SEASTACK_VERSION_FULL); } static void PrintInfo() noexcept { seastack::infra::cli::ShowBanner(); } @@ -261,7 +261,7 @@ int main(int argc, char* argv[]) { for (int i = 1; i < argc; i++) { std::string arg = argv[i]; if (arg == "--help" || arg == "-h") { - PrintHelp(argv[0]); + PrintHelp("run_seastack"); seastack::infra::Shutdown(); return 0; } else if (arg == "--version" || arg == "-v") { @@ -283,7 +283,7 @@ int main(int argc, char* argv[]) { if (argc == 1) { seastack::infra::cli::LogError("ERROR: Input directory or setup file is required"); seastack::infra::cli::ShowEmptyLine(); - seastack::infra::cli::LogInfo(std::string("Usage: ") + argv[0] + " [options] "); + seastack::infra::cli::LogInfo("Usage: run_seastack [options] "); seastack::infra::cli::LogInfo("Use --help for more information."); seastack::infra::Shutdown(); return 1; @@ -371,7 +371,7 @@ int main(int argc, char* argv[]) { if (args.input_directory.empty()) { seastack::infra::cli::LogError("ERROR: Input directory or setup file is required"); seastack::infra::cli::ShowEmptyLine(); - seastack::infra::cli::LogInfo(std::string("Usage: ") + argv[0] + " [options] "); + seastack::infra::cli::LogInfo("Usage: run_seastack [options] "); seastack::infra::cli::LogInfo("Use --help for more information."); seastack::infra::Shutdown(); return 1; diff --git a/libs/infrastructure/src/logging.cpp b/libs/infrastructure/src/logging.cpp index 67afe6e..61b7036 100644 --- a/libs/infrastructure/src/logging.cpp +++ b/libs/infrastructure/src/logging.cpp @@ -329,12 +329,19 @@ void CLILogger::ShowBanner() { Log(LogLevel::Success, "│ ███████║███████╗██║ ██║ ███████║ ██║ ██║ ██║╚██████╗██║ ██╗ │", LogColor::BrightCyan); Log(LogLevel::Success, "│ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ │", LogColor::BrightCyan); Log(LogLevel::Success, "│ │", LogColor::BrightCyan); - Log(LogLevel::Success, "│ Version : 1.0.0 │", LogColor::Gray); - Log(LogLevel::Success, "│ Status : Beta │", LogColor::Gray); - Log(LogLevel::Success, "│ Author : SEA-Stack Development Team │", LogColor::Gray); + { + // The version comes from the build (version.h), so it cannot go stale. + std::string row = "│ Version : " + std::string(SEASTACK_VERSION_FULL); + while (GetVisibleWidth(row) < 80) { + row += ' '; + } + Log(LogLevel::Success, row + "│", LogColor::Gray); + } + Log(LogLevel::Success, "│ Developed by : Simocean Ltd. │", LogColor::Gray); + Log(LogLevel::Success, "│ The National Laboratory of the Rockies (NLR) │", LogColor::Gray); Log(LogLevel::Success, "│ Maintainer : David Ogden │", LogColor::Gray); Log(LogLevel::Success, "│ License : MIT │", LogColor::Gray); - Log(LogLevel::Success, "│ URL : https://github.com/Project-SEA-Stack │", LogColor::Gray); + Log(LogLevel::Success, "│ URL : https://github.com/Project-SEA-Stack/SEA-Stack │", LogColor::Gray); Log(LogLevel::Success, "│ │", LogColor::BrightCyan); Log(LogLevel::Success, "╰───────────────────────────────────────────────────────────────────────────────╯", LogColor::BrightCyan); Log(LogLevel::Success, "", LogColor::White);