Skip to content

Commit

Permalink
Merge branch 'v2.3' of git+ssh://scm.gforge.inria.fr/gitroot/plast-li…
Browse files Browse the repository at this point in the history
…brary/plast-library into v2.3
  • Loading branch information
genscale-admin committed May 16, 2017
2 parents e943a6d + fa02be1 commit 40ff11e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/alignment/visitors/impl/XmlOutputVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ void XmlOutputVisitor::visitQuerySequence (
printline (1, "<BlastOutput_query-seq>not specified</BlastOutput_query-seq>");
printline (1, "<BlastOutput_param>");
printline (2, "<Parameters>");
printParameter(STR_OPTION_EVALUE, "expect");
printParameter(STR_OPTION_SCORE_MATRIX, "matrix");
printParameter(STR_OPTION_EVALUE, "expect");
printParameter(STR_OPTION_OPEN_GAP_COST, "gap-open");
printParameter(STR_OPTION_EXTEND_GAP_COST, "gap-extend");
printParameter(STR_OPTION_FILTER_QUERY, "filter");
Expand Down
8 changes: 6 additions & 2 deletions tools/PlastCmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ using namespace launcher::core;
int main (int argc, char* argv[])
{
PlastOptionsParser parser;
int retcode = 0;
try {
/** We create a Properties instance for collecting both init properties file and user command line options. */
IProperties* props = new Properties ();
Expand Down Expand Up @@ -147,20 +148,23 @@ int main (int argc, char* argv[])
catch (OptionFailure& e)
{
if (parser.saw(STR_OPTION_HELP)) { parser.displayHelp (stdout); }
else { parser.displayErrors (stdout); parser.displayHelpShort();}
else { parser.displayErrors (stdout); parser.displayHelpShort(); retcode = 2;}
}
catch (statistics::GlobalParametersFailure& e)
{
fprintf (stderr, MSG_MAIN_MSG2, e.getMessage());
retcode = 3;
}
catch (const char* e)
{
fprintf (stderr, MSG_MAIN_MSG3, e);
retcode = 4;
}
catch (...)
{
fprintf (stderr, "%s", MSG_MAIN_MSG4);
retcode = 5;
}

return 0;
return retcode;
}

0 comments on commit 40ff11e

Please sign in to comment.