Add version information.
This commit is contained in:
9
main.cpp
9
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;
|
||||
|
||||
Reference in New Issue
Block a user