X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cmdargs.cpp;h=481244256a0274bafa970461d4296e5bb6c065d2;hb=d9b668f68b99f92ecdc71dd8cd363cb4e27107f9;hp=416ced88ddb1a0dc765b73a5c973570f7925709b;hpb=1b4aa03040e61f4c2d47ce32cb12726dcdadb917;p=mothur.git diff --git a/cmdargs.cpp b/cmdargs.cpp index 416ced8..4812442 100644 --- a/cmdargs.cpp +++ b/cmdargs.cpp @@ -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: