@@ -360,8 +360,9 @@ std::unique_ptr<Arg> OptTable::parseOneArgGrouped(InputArgList &Args,
360
360
continue ;
361
361
362
362
Option Opt (Start, this );
363
- if (std::unique_ptr<Arg> A = Opt.accept (
364
- Args, StringRef (Args.getArgString (Index), ArgSize), false , Index))
363
+ if (std::unique_ptr<Arg> A =
364
+ Opt.accept (Args, StringRef (Args.getArgString (Index), ArgSize),
365
+ /* GroupedShortOption=*/ false , Index))
365
366
return A;
366
367
367
368
// If Opt is a Flag of length 2 (e.g. "-a"), we know it is a prefix of
@@ -381,8 +382,8 @@ std::unique_ptr<Arg> OptTable::parseOneArgGrouped(InputArgList &Args,
381
382
return std::make_unique<Arg>(getOption (UnknownOptionID), Str, Index++,
382
383
CStr);
383
384
384
- if (std::unique_ptr<Arg> A =
385
- Opt. accept ( Args, Str.substr (0 , 2 ), true , Index)) {
385
+ if (std::unique_ptr<Arg> A = Opt. accept (
386
+ Args, Str.substr (0 , 2 ), /* GroupedShortOption= */ true , Index)) {
386
387
Args.replaceArgString (Index, Twine (' -' ) + Str.substr (2 ));
387
388
return A;
388
389
}
@@ -442,8 +443,9 @@ std::unique_ptr<Arg> OptTable::ParseOneArg(const ArgList &Args, unsigned &Index,
442
443
continue ;
443
444
444
445
// See if this option matches.
445
- if (std::unique_ptr<Arg> A = Opt.accept (
446
- Args, StringRef (Args.getArgString (Index), ArgSize), false , Index))
446
+ if (std::unique_ptr<Arg> A =
447
+ Opt.accept (Args, StringRef (Args.getArgString (Index), ArgSize),
448
+ /* GroupedShortOption=*/ false , Index))
447
449
return A;
448
450
449
451
// Otherwise, see if this argument was missing values.
0 commit comments