mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-10 04:41:57 -04:00
fix for the output
This commit is contained in:
parent
fcfa7e188a
commit
d91d422210
@ -52,13 +52,14 @@ void XorHandler::longUsage()
|
|||||||
{
|
{
|
||||||
for ( int i = 0; (unsigned int)i < _orList.size(); i++ )
|
for ( int i = 0; (unsigned int)i < _orList.size(); i++ )
|
||||||
{
|
{
|
||||||
int orCount = 0;
|
|
||||||
for ( ArgVectorIterator it = _orList[i].begin();
|
for ( ArgVectorIterator it = _orList[i].begin();
|
||||||
it != _orList[i].end(); it++, orCount++ )
|
it != _orList[i].end();
|
||||||
|
it++ )
|
||||||
{
|
{
|
||||||
cout << " " << (*it)->longID() << endl
|
cout << " " << (*it)->longID() << endl
|
||||||
<< " " << (*it)->getDescription() << endl;
|
<< " " << (*it)->getDescription() << endl;
|
||||||
if ( (orCount % 2) == 0 )
|
|
||||||
|
if ( it+1 != _orList[i].end() )
|
||||||
cout << " -- OR -- " << endl;
|
cout << " -- OR -- " << endl;
|
||||||
}
|
}
|
||||||
cout << endl << endl;
|
cout << endl << endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user