From 332dba512c16fbf1ce9176a22594b6ef19406493 Mon Sep 17 00:00:00 2001 From: cschreib Date: Wed, 8 Nov 2017 17:11:00 +0100 Subject: [PATCH] Now printing the version number in the terminal --- src/fast++-read_input.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fast++-read_input.cpp b/src/fast++-read_input.cpp index 240130c..465ba06 100644 --- a/src/fast++-read_input.cpp +++ b/src/fast++-read_input.cpp @@ -1,5 +1,7 @@ #include "fast++.hpp" +extern const char* fastpp_version; + std::string remove_first_last(std::string val, std::string charlist) { if (val.empty()) return val; uint_t p0 = 0, n = val.size(); @@ -221,6 +223,10 @@ bool read_params(options_t& opts, input_state_t& state, const std::string& filen } } + if (opts.verbose) { + note("this is FAST++ version '", fastpp_version, "'"); + } + // Create output directory, if it doesn't exist if (!opts.output_dir.empty()) { opts.output_dir = file::directorize(opts.output_dir);