diff --git a/src/svi.cc b/src/svi.cc index 421ff3c..5bcff31 100644 --- a/src/svi.cc +++ b/src/svi.cc @@ -1,6 +1,7 @@ #include #include "SvnRunner.h" #include +#include "svi.h" using namespace std; @@ -21,8 +22,8 @@ int main(int argc, char * argv[]) switch (o) { case OPT_VERSION: - printf("version 0.0.0alpha0\n"); - break; + printf(APPLICATION_NAME " version " APPLICATION_VERSION "\n"); + return 0; } } diff --git a/src/svi.h b/src/svi.h new file mode 100644 index 0000000..0f1e28e --- /dev/null +++ b/src/svi.h @@ -0,0 +1,7 @@ +#ifndef SVI_H +#define SVI_H + +#define APPLICATION_NAME "svi" +#define APPLICATION_VERSION "0.0.0alpha0" + +#endif