From c14053315d794ce42a2083c025eb3829449f76c7 Mon Sep 17 00:00:00 2001 From: Saleem Edah-Tally Date: Mon, 2 Oct 2023 21:00:13 +0200 Subject: [PATCH] Add version information. --- main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 2cc3a29..cedc57b 100644 --- a/main.cpp +++ b/main.cpp @@ -620,7 +620,7 @@ int main(int argc, char ** argv) boundClass[UTF8PROC_BOUNDCLASS_EXTENDED_PICTOGRAPHIC] = _("Extended_Pictographic"); boundClass[UTF8PROC_BOUNDCLASS_E_ZWG] = _("UTF8PROC_BOUNDCLASS_EXTENDED_PICTOGRAPHIC + ZWJ"); - const char * modeInfo = "A mode of operation is required: unaccent, normalize, representation, properties." + const char * modeInfo = "A mode of operation is required: unaccent, normalize, representation, properties, about." "\nPass '--help' for more information in each mode."; const int sargc = argc - 1; if (sargc == 0) @@ -659,6 +659,13 @@ int main(int argc, char ** argv) { ret = properties(sargc, sargv); } + else if (mode == "about") + { + cout << "Author: Saleem Edah-Tally [Surgeon, Hobbyist developer]" + "\nVersion: " << _APPVERSION_ << endl << + "License: CeCILL" << endl; + ret = 0; + } else { cout << modeInfo << endl;