From 0b0cfebb5cfd2ae4205222668a6303bf95848ffa Mon Sep 17 00:00:00 2001 From: Georg Sauthoff Date: Mon, 10 Mar 2014 13:50:17 +0100 Subject: [PATCH] add version strings in help output --- main.cc | 9 +++++++++ 1 file changed, 9 insertions(+) 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() -- 1.8.3.1