]> git.donarmstrong.com Git - mothur.git/blobdiff - cmdargs.cpp
testing 1.13.0
[mothur.git] / cmdargs.cpp
index 416ced88ddb1a0dc765b73a5c973570f7925709b..481244256a0274bafa970461d4296e5bb6c065d2 100644 (file)
@@ -70,6 +70,8 @@ NJ_handle_args(int argc,
   
   static NJ_ARGS nj_args;
   int option_index, c;
+  
+  optind = 0;  //neccasary to read in arguments if code is run more than once
 
   struct option NJ_long_options[] = {
 
@@ -139,7 +141,8 @@ NJ_handle_args(int argc,
     if(c == -1) {
       break;
     }
-
+//printf("%d\t%d\n", option_index, argc);
+//for (int red = 0; red < argc; red++) { printf("%s\n", argv[red]); }
     switch(c) {
 
     case 0: