ptypes

ptypes Commit Details


Date:2013-05-24 21:56:00 (11 years 7 months ago)
Author:Natalie Adams
Branch:default
Commit:e403f5f8dfb5
Parents: 06572458aab1
Message:Adding newlines

Changes:
Mwin32/ppparser.cxx (3 diffs)

File differences

win32/ppparser.cxx
88
99
1010
11
11
12
1213
13
14
1415
1516
1617
......
7576
7677
7778
79
7880
7981
8082
......
109111
110112
111113
112
114
113115
114116
115117
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] == '-')
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: ");
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");

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 0.62652s using 14 queries.