@@ -458,16 +458,16 @@ bool ParseArgs(const char * progName, int argc, char * const argv[], OptionSet *
458
458
// character of an option group (e.g. 'a' or 'b' in "-abc"), or [prevOptIndex, optind) if it's the final character of an
459
459
// option group or not a group at all. Walk through those elements knowing that all elements we encounter before reaching
460
460
// the option must be nonoptions. Store the range of those nonoptions in firstNonoptionNew and lastNonoptionPlus1New. If
461
- // this is the final iteration (getopt_long returned -1) then prevOptIndex == optind == argc, which means firstNonoptionNew ==
462
- // lastNonoptionPlus1New == argc, the following for loop will be skipped, and all the nonoptions we had already found will
463
- // get moved to the end of argv.
461
+ // this is the final iteration (getopt_long returned -1) then prevOptIndex == optind == argc, which means firstNonoptionNe
462
+ // == lastNonoptionPlus1New == argc, the following for loop will be skipped, and all the nonoptions we had already found
463
+ // will get moved to the end of argv.
464
464
firstNonoptionNew = prevOptIndex;
465
465
lastNonoptionPlus1New = prevOptIndex;
466
466
for (nonoptionToMove = prevOptIndex; nonoptionToMove <= optind ; nonoptionToMove++)
467
467
{
468
- // Note that this loop INCLUDES nonoptionToMove=optind since the option that just got processed might be part of a group of short
469
- // options all sharing a single '-', in which case optind is going to land on that same element several times in a row
470
- // before it moves past it.
468
+ // Note that this loop INCLUDES nonoptionToMove=optind since the option that just got processed might be part of a group
469
+ // of short options all sharing a single '-', in which case optind is going to land on that same element several times
470
+ // in a row before it moves past it.
471
471
if (argv[nonoptionToMove] && argv[nonoptionToMove][0 ] == ' -' )
472
472
{
473
473
lastNonoptionPlus1New = nonoptionToMove;
@@ -487,7 +487,7 @@ bool ParseArgs(const char * progName, int argc, char * const argv[], OptionSet *
487
487
for (indexToSwap = nonoptionToMove; indexToSwap < moveNonoptionToHere; indexToSwap++)
488
488
{
489
489
// Swap element indexToSwap with element indexToSwap + 1.
490
- tempSwap = permutableArgv[indexToSwap];
490
+ tempSwap = permutableArgv[indexToSwap];
491
491
permutableArgv[indexToSwap] = permutableArgv[indexToSwap + 1 ];
492
492
permutableArgv[indexToSwap + 1 ] = tempSwap;
493
493
}
0 commit comments