mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 01:39:27 +02:00
* Applied patch by accorp to fix unwanted parameter values in Opts output parameter of CheckOptions. (bug ID 29951)
git-svn-id: trunk@34500 -
This commit is contained in:
parent
7d4b3dc7aa
commit
9cca873e54
@ -643,8 +643,6 @@ begin
|
||||
begin
|
||||
HaveArg:=(I<ParamCount) and (Length(ParamStr(I+1))>0) and (ParamStr(I+1)[1]<>FOptionChar);
|
||||
UsedArg:=False;
|
||||
If HaveArg then
|
||||
OV:=Paramstr(I+1);
|
||||
If Not CaseSensitiveOptions then
|
||||
O:=LowerCase(O);
|
||||
L:=Length(O);
|
||||
@ -668,10 +666,11 @@ begin
|
||||
end;
|
||||
Inc(J);
|
||||
end;
|
||||
If HaveArg and UsedArg then
|
||||
HaveArg:=HaveArg and UsedArg;
|
||||
If HaveArg then
|
||||
begin
|
||||
Inc(I); // Skip argument.
|
||||
O:=O[Length(O)]; // O is added to arguments !
|
||||
OV:=Paramstr(I);
|
||||
end;
|
||||
end;
|
||||
If HaveArg and ((Result='') or AllErrors) then
|
||||
|
Loading…
Reference in New Issue
Block a user