chimera.uchime Error: Option --compilerinfo defined twice

When running chimera.uchime a second time in mothur, uchime reports the error: Option --compilerinfo defined twice

This is because of the static declaration of g_Opts in myutils.cpp

A possible fix would be to clear g_Opts each time MyCmdLine() is called:


$ diff -c myutils.cpp.orig myutils.cpp *** myutils.cpp.orig Tue May 31 12:11:45 2011 --- myutils.cpp Wed Jun 22 11:01:10 2011 *************** *** 1531,1536 **** --- 1531,1537 ----

void MyCmdLine(int argc, char **argv)
{

  •     g_Opts.clear();
    

static unsigned RecurseDepth = 0;
++RecurseDepth;