diff --git a/viewer/main.cpp b/viewer/main.cpp
index c44e98f7098a3a816a71e9fa0a373ed58d19692f..dec7d4ad74013bbfaca2df1695225c1a33680919 100644 (file)
--- a/viewer/main.cpp
+++ b/viewer/main.cpp
/******************************************************************************
- * Copyright (c) 2017-18, Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (c) 2017-2018, Texas Instruments Incorporated - http://www.ti.com/
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
}
}
+#define STRING(S) XSTRING(S)
+#define XSTRING(S) #S
void DisplayHelp()
{
+ std::string version = STRING(_BUILD_VER);
+ version += ".";
+ version += STRING(_BUILD_SHA);
+
std::cout << "Usage: tidl_viewer -d <dot file name> <network binary file>\n"
- "Options: \n"
+ << "Version: " << version << std::endl
+ << "Options: \n"
" -p Print network layer info\n"
" -h Display this help message\n";
}