Commit de312542 authored by Mathieu Giraud's avatar Mathieu Giraud

vidjil.cpp: display version information at the start, even when the argv parsing fails

parent 07cb3373
......@@ -270,9 +270,25 @@ int main (int argc, char **argv)
<< "# No lymphocyte was harmed in the making of this software," << endl
<< "# however this software is for research use only and comes with no warranty." << endl
<< endl
<< "# Please cite http://biomedcentral.com/1471-2164/15/409 if you use Vidjil."
<< "# Please cite http://biomedcentral.com/1471-2164/15/409 if you use Vidjil." << endl
<< endl ;
//////////////////////////////////
// Display version information or git log
string soft_version = "vidjil ";
#ifdef RELEASE_TAG
cout << "# version: vidjil " << RELEASE_TAG << endl ;
soft_version.append(RELEASE_TAG);
#else
cout << "# development version" << endl ;
#ifdef GIT_VERSION
cout << "# git: " << GIT_VERSION << endl ;
soft_version.append("dev ");
soft_version.append(GIT_VERSION);
#endif
#endif
//$$ options: defaults
string germline_system = "" ;
......@@ -722,22 +738,6 @@ int main (int argc, char **argv)
cout << "# " << time_buffer << endl ;
//////////////////////////////////
// Display version information or git log
string soft_version = "vidjil ";
#ifdef RELEASE_TAG
cout << "# version: vidjil " << RELEASE_TAG << endl ;
soft_version.append(RELEASE_TAG);
#else
cout << "# development version" << endl ;
#ifdef GIT_VERSION
cout << "# git: " << GIT_VERSION << endl ;
soft_version.append("dev ");
soft_version.append(GIT_VERSION);
#endif
#endif
//////////////////////////////////
// Warning for non-optimal use
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment