From b8e703c84bda2e7808143ece5457084582f89bfd Mon Sep 17 00:00:00 2001 From: David Ogden <12831266+dav-og@users.noreply.github.com> Date: Fri, 4 Dec 2026 11:52:31 +0000 Subject: [PATCH 1/2] Print the version from the build in the start-up banner. The banner of run_seastack showed "Version : 1.0.0" and "Status : Beta" as fixed text, which no release had updated since 1.0.0. The version row now prints SEASTACK_VERSION_FULL from the generated version.h, as the compact banner already does, and the status row is removed. --- libs/infrastructure/src/logging.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libs/infrastructure/src/logging.cpp b/libs/infrastructure/src/logging.cpp index 67afe6e..637b87f 100644 --- a/libs/infrastructure/src/logging.cpp +++ b/libs/infrastructure/src/logging.cpp @@ -329,8 +329,14 @@ 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); + { + // 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, "│ Author : SEA-Stack Development Team │", LogColor::Gray); Log(LogLevel::Success, "│ Maintainer : David Ogden │", LogColor::Gray); Log(LogLevel::Success, "│ License : MIT │", LogColor::Gray); From 5e3e8774cb4946c684923c8ee23edc9e5e51d501 Mon Sep 17 00:00:00 2001 From: David Ogden <12831266+dav-og@users.noreply.github.com> Date: Fri, 4 Dec 2026 12:10:14 +0000 Subject: [PATCH 2/2] Name the developers and the repository in the run_seastack messages. The start-up banner names Simocean Ltd. and The National Laboratory of the Rockies (NLR) as developers, as the licence and the citation file do, and links to the repository instead of the organisation page. --version prints "SEA-Stack" instead of the CMake project name "SEAStack". The usage lines of --help and of a call without arguments name the program as run_seastack instead of repeating the full path it was started from. --- apps/seastack/run_seastack.cpp | 8 ++++---- libs/infrastructure/src/logging.cpp | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) 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 637b87f..61b7036 100644 --- a/libs/infrastructure/src/logging.cpp +++ b/libs/infrastructure/src/logging.cpp @@ -337,10 +337,11 @@ void CLILogger::ShowBanner() { } Log(LogLevel::Success, row + "│", LogColor::Gray); } - Log(LogLevel::Success, "│ Author : SEA-Stack Development Team │", 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);