From aeb14074d355a9dbbea5a2fb7166274eb1c4297b Mon Sep 17 00:00:00 2001 From: Minh Bui Date: Thu, 22 Mar 2018 12:10:31 +1100 Subject: [PATCH] release version 1.6.3 --- CMakeLists.txt | 2 +- utils/tools.cpp | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 354e1b63..1e54000f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,7 @@ add_definitions(-DIQ_TREE) # The version number. set (iqtree_VERSION_MAJOR 1) set (iqtree_VERSION_MINOR 6) -set (iqtree_VERSION_PATCH "2.a") +set (iqtree_VERSION_PATCH "3") set(BUILD_SHARED_LIBS OFF) diff --git a/utils/tools.cpp b/utils/tools.cpp index 67603c79..3a0bc0ef 100644 --- a/utils/tools.cpp +++ b/utils/tools.cpp @@ -38,6 +38,7 @@ #include "alignment/alignment.h" VerboseMode verbose_mode; +extern void printCopyright(ostream &out); /* WIN32 does not define gettimeofday() function. @@ -1032,6 +1033,10 @@ void parseArg(int argc, char *argv[], Params ¶ms) { usage(argv, false); #endif continue; + } + if (strcmp(argv[cnt], "-version") == 0 || strcmp(argv[cnt], "--version") == 0) { + printCopyright(cout); + exit(EXIT_SUCCESS); } if (strcmp(argv[cnt], "-ho") == 0 || strcmp(argv[cnt], "-?") == 0) { usage_iqtree(argv, false); @@ -3513,8 +3518,6 @@ void parseArg(int argc, char *argv[], Params ¶ms) { } -extern void printCopyright(ostream &out); - void usage(char* argv[]) { printCopyright(cout); cout << "Usage: " << argv[0] << " [OPTIONS] []" << endl; @@ -3590,6 +3593,7 @@ void usage_iqtree(char* argv[], bool full_command) { cout << "Usage: " << argv[0] << " -s [OPTIONS]" << endl << endl; cout << "GENERAL OPTIONS:" << endl << " -? or -h Print this help dialog" << endl + << " -version Display version number" << endl << " -s Input alignment in PHYLIP/FASTA/NEXUS/CLUSTAL/MSF format" << endl << " -st BIN, DNA, AA, NT2AA, CODON, MORPH (default: auto-detect)" << endl << " -q Edge-linked partition model (file in NEXUS/RAxML format)" << endl @@ -3903,7 +3907,7 @@ void quickStartGuide() { << " iqtree -s counts_file.cf -m HKY+P" << endl << endl << "2. Set virtual population size to 15:" << endl << " iqtree -s counts_file.cf -m HKY+P+N15" << endl << endl - << "3. Use GTR model and estimate allele frequencies during maximization of likelihood:" << endl + << "3. Use GTR model and estimate state frequencies with maxmimum lilelihood:" << endl << " iqtree -s counts_file.cf -m GTR+P+FO" << endl << endl << "4. Polymorphism-aware mixture model with N=5 and weighted binomial sampling:" << endl << " iqtree -s counts_file.cf -m \"MIX{HKY+P{EMP},JC+P}+N5+WB\"" << endl << endl