mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-09-08 11:49:39 -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++ )
|
||||
{
|
||||
int orCount = 0;
|
||||
for ( ArgVectorIterator it = _orList[i].begin();
|
||||
it != _orList[i].end(); it++, orCount++ )
|
||||
it != _orList[i].end();
|
||||
it++ )
|
||||
{
|
||||
cout << " " << (*it)->longID() << endl
|
||||
<< " " << (*it)->getDescription() << endl;
|
||||
if ( (orCount % 2) == 0 )
|
||||
|
||||
if ( it+1 != _orList[i].end() )
|
||||
cout << " -- OR -- " << endl;
|
||||
}
|
||||
cout << endl << endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user