Application build time added to application to write to stdout at startup

Former-commit-id: 4fca64a4b7ae6f0d74495173df26538cebae95f3
This commit is contained in:
johan 2013-10-21 20:29:30 +02:00
parent 293a2e7c19
commit 756e9a28c0
2 changed files with 63 additions and 60 deletions

View File

@ -111,6 +111,7 @@ void OptionsParser::parse(int argc, const char* argv[]) throw(runtime_error)
void OptionsParser::usage() const {
cerr << fprogramDesc << endl;
cerr << "Build time: " << __DATE__ << " " << __TIME__ << endl << endl;
cerr << "Usage: " << programName() << " [OPTIONS]" << endl << endl;
cerr << "Parameters: " << endl;

View File

@ -57,6 +57,8 @@ Json::Value loadConfig(const std::string & configFile)
int main(int argc, char** argv)
{
std::cout << "Application build time: " << __DATE__ << " " << __TIME__ << std::endl;
// Initialising QCoreApplication
QCoreApplication app(argc, argv);
std::cout << "QCoreApplication initialised" << std::endl;