aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/opt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opt.c b/src/opt.c
index 0f70293..ac6832e 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -1,3 +1,4 @@
+#include "version.h"
#include "opt.h"
#include "../reqs/simple-opt/simple-opt.h"
@@ -21,7 +22,6 @@ static struct simple_opt options[] = {
void opt_parse(int argc, char **argv)
{
struct simple_opt_result result;
- const char version[] = "confconf develop";
result = simple_opt_parse(argc, argv, options);
@@ -42,7 +42,7 @@ void opt_parse(int argc, char **argv)
/* version */
if (options[1].was_seen) {
- puts(version);
+ puts(VERSION);
exit(EXIT_SUCCESS);
}
}