Skip to content

Commit 332dba5

Browse files
committed
Now printing the version number in the terminal
1 parent 41f8e50 commit 332dba5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/fast++-read_input.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "fast++.hpp"
22

3+
extern const char* fastpp_version;
4+
35
std::string remove_first_last(std::string val, std::string charlist) {
46
if (val.empty()) return val;
57
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
221223
}
222224
}
223225

226+
if (opts.verbose) {
227+
note("this is FAST++ version '", fastpp_version, "'");
228+
}
229+
224230
// Create output directory, if it doesn't exist
225231
if (!opts.output_dir.empty()) {
226232
opts.output_dir = file::directorize(opts.output_dir);

0 commit comments

Comments
 (0)