Skip to content

Commit ddf3ac3

Browse files
committed
Now printing the version number in the terminal
1 parent b23f169 commit ddf3ac3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/fast++-read_input.cpp

Lines changed: 6 additions & 0 deletions
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();
@@ -149,6 +151,10 @@ bool read_params(options_t& opts, input_state_t& state, const std::string& filen
149151
}
150152
}
151153

154+
if (opts.verbose) {
155+
note("this is FAST++ version '", fastpp_version, "'");
156+
}
157+
152158
if (!opts.output_dir.empty()) {
153159
opts.output_dir = file::directorize(opts.output_dir);
154160
if (!file::mkdir(opts.output_dir)) {

0 commit comments

Comments
 (0)