Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/seastack/run_seastack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }

Expand Down Expand Up @@ -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") {
Expand All @@ -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] <input_directory_or_setup_file>");
seastack::infra::cli::LogInfo("Usage: run_seastack [options] <input_directory_or_setup_file>");
seastack::infra::cli::LogInfo("Use --help for more information.");
seastack::infra::Shutdown();
return 1;
Expand Down Expand Up @@ -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] <input_directory_or_setup_file>");
seastack::infra::cli::LogInfo("Usage: run_seastack [options] <input_directory_or_setup_file>");
seastack::infra::cli::LogInfo("Use --help for more information.");
seastack::infra::Shutdown();
return 1;
Expand Down
15 changes: 11 additions & 4 deletions libs/infrastructure/src/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading