Skip to content

Commit

Permalink
Now printing the version number in the terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
cschreib committed Nov 8, 2017
1 parent 41f8e50 commit 332dba5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/fast++-read_input.cpp
Original file line number Diff line number Diff line change
@@ -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();
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 332dba5

Please sign in to comment.