From: Georg Sauthoff Date: Mon, 10 Mar 2014 12:50:17 +0000 (+0100) Subject: add version strings in help output X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=0b0cfebb5cfd2ae4205222668a6303bf95848ffa;p=doxy2man add version strings in help output --- diff --git a/main.cc b/main.cc index 432e7cf..3a0a4ca 100644 --- a/main.cc +++ b/main.cc @@ -37,10 +37,16 @@ ostream &operator<<(ostream &o, const QString &q) struct doxy2man { static const char name[]; static const char ver[]; + static const char author[]; + static const char mail[]; + static const char date[]; }; const char doxy2man::name[] = "doxy2man"; const char doxy2man::ver[] = "0.2"; +const char doxy2man::author[] = "Georg Sauthoff"; +const char doxy2man::mail[] = "mail@georg.so"; +const char doxy2man::date[] = "2014-03-10"; enum Direction { DIR_NONE, DIR_IN, DIR_OUT }; @@ -216,6 +222,9 @@ struct Options { " --short-pkg STR short man page header/footer string, e.g. 'Linux'\n" " --pkg STR man page header/footer string, e.g. 'Linux Programmer's Manual'\n" "-i STR, --include STR include path prefix\n" + "\n" + "Version: " << doxy2man::name << " " << doxy2man::ver << "\n" + << "Author : " << doxy2man::author << " <" << doxy2man::mail << ">, (" << doxy2man::date << ")\n" << "\n"; } void check_input_filename()