Add version information.

This commit is contained in:
Saleem Edah-Tally
2023-10-02 21:00:13 +02:00
parent 17321d504b
commit c14053315d

View File

@@ -620,7 +620,7 @@ int main(int argc, char ** argv)
boundClass[UTF8PROC_BOUNDCLASS_EXTENDED_PICTOGRAPHIC] = _("Extended_Pictographic"); boundClass[UTF8PROC_BOUNDCLASS_EXTENDED_PICTOGRAPHIC] = _("Extended_Pictographic");
boundClass[UTF8PROC_BOUNDCLASS_E_ZWG] = _("UTF8PROC_BOUNDCLASS_EXTENDED_PICTOGRAPHIC + ZWJ"); 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."; "\nPass '--help' for more information in each mode.";
const int sargc = argc - 1; const int sargc = argc - 1;
if (sargc == 0) if (sargc == 0)
@@ -659,6 +659,13 @@ int main(int argc, char ** argv)
{ {
ret = properties(sargc, sargv); 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 else
{ {
cout << modeInfo << endl; cout << modeInfo << endl;