Skip to content

Commit

Permalink
Print the version info
Browse files Browse the repository at this point in the history
  • Loading branch information
onurulgen committed Jan 16, 2024
1 parent 0ddb72b commit cbdea7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion niftyreg_build_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
386
387
4 changes: 3 additions & 1 deletion reg-lib/cpu/_reg_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2565,10 +2565,12 @@ nifti_image* nifti_dup(const nifti_image& image, const bool copyData) {
}
/* *************************************************************** */
void PrintCmdLine(const int argc, const char *const *argv, const bool verbose) {
// Print the version
NR_INFO(argv[0] << " v" << NR_VERSION);
NR_INFO("");
#ifdef NDEBUG
if (!verbose) return;
#endif
NR_INFO("");
NR_INFO("Command line:");
std::string text("\t");
for (int i = 0; i < argc; i++)
Expand Down

0 comments on commit cbdea7c

Please sign in to comment.