Skip to content
Snippets Groups Projects
Commit ce6b597a authored by Andrea Bignamini's avatar Andrea Bignamini
Browse files

Add version option

Add version option to get the version of the preProcessor-srv.
parent 39745412
Branches
Tags
No related merge requests found
Pipeline #467 failed
// Version.h
#if !defined(VERSION_H)
#define VERSION_H 1
std::string version = "1.0.2";
#endif
...@@ -37,9 +37,14 @@ ...@@ -37,9 +37,14 @@
// (Program Obviously used to Generate tango Object) // (Program Obviously used to Generate tango Object)
//============================================================================= //=============================================================================
#include <tango.h> #include <tango.h>
#include <Version.h>
int main(int argc,char *argv[]) int main(int argc,char *argv[])
{ {
if (std::string(argv[1]) == "--version"){
cout << version << endl;
return(0);
}
try try
{ {
// Initialise the device server // Initialise the device server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment