Changing the way parameters are shown to the user when the -h or --help flags are used
This commit is contained in:
parent
7d3e4c83f2
commit
8eac301566
1 changed files with 7 additions and 1 deletions
|
|
@ -710,10 +710,16 @@ public:
|
||||||
|
|
||||||
for ( p=params.begin(); p!=params.end(); p++ ) {
|
for ( p=params.begin(); p!=params.end(); p++ ) {
|
||||||
if( p->valType() != Param::TITLE ) {
|
if( p->valType() != Param::TITLE ) {
|
||||||
|
// Victor: 04-Jan-2000
|
||||||
|
// Modified because the - and -- prefixes are not needed.
|
||||||
|
/*
|
||||||
cout << "-" << p->shortName()
|
cout << "-" << p->shortName()
|
||||||
<<", --"<<p->longName()<<":\t"
|
<<", --"<<p->longName()<<":\t"
|
||||||
<<p->description()<<endl;
|
<<p->description()<<endl;
|
||||||
|
*/
|
||||||
|
cout << p->shortName()
|
||||||
|
<<", " << p->longName()<<":\t"
|
||||||
|
<<p->description()<<endl;
|
||||||
cout << "\t(";
|
cout << "\t(";
|
||||||
switch ( p->valType() ) {
|
switch ( p->valType() ) {
|
||||||
case Param::INT: cout <<"Integer"; break;
|
case Param::INT: cout <<"Integer"; break;
|
||||||
|
|
|
||||||
Reference in a new issue