diff -r 06572458aab14515dd6112c12b523bbc81ce2985 -r e403f5f8dfb5dada32275e069e6f431bc1360f1c win32/ppparser.cxx --- a/win32/ppparser.cxx Fri May 24 21:14:49 2013 -0500 +++ b/win32/ppparser.cxx Fri May 24 21:56:09 2013 -0500 @@ -8,9 +8,10 @@ this->checkreq = true; // Assumptions: // *) options will not start with - - // *) parameters will not be repeated + // *) parameters will not be repeated\ + // *) Parameters are in order int z = 0; - for(int i = 1; i < argc; i++) + for(int i = 1; i < argc - 1; i++) { if (argv[i][0] == '-') @@ -75,6 +76,7 @@ void pparser::printusage(const char * header, const char * pname, const char * footer) { pout.put(header); + pout.put("\n"); if (this->invalidparas.get_count() > 0) { pout.put("Invalid parameters: "); @@ -109,7 +111,7 @@ else parameterlist += "[-" + (*this->paras)[i]->shortparameter + "] "; - paralisthints += "-" + (*this->paras)[i]->shortparameter + ", --" + (*this->paras)[i]->longparameter + "\n" + (*this->paras)[i]->hint; + paralisthints += "-" + (*this->paras)[i]->shortparameter + ", --" + (*this->paras)[i]->longparameter + "\n" + (*this->paras)[i]->hint + "\n\n"; } pout.put(parameterlist); pout.put("\n");