File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ TParam = class
187187 { $ENDIF}
188188 function GetHelp : TStringList;
189189 property Help : Boolean read fHelp write fHelp;
190- function ExistsParam (const aParam : string): Boolean; overload;
190+ function ExistsParam (const aParam : string; const aValueSeparator : string = ' ' ): Boolean; overload;
191191 end ;
192192 { $M-}
193193
@@ -315,12 +315,13 @@ function TParameters.CheckHelpSwitch: Boolean;
315315 end ;
316316end ;
317317
318- function TParameters.ExistsParam (const aParam : string): Boolean;
318+ function TParameters.ExistsParam (const aParam : string; const aValueSeparator : string = ' ' ): Boolean;
319319var
320320 param : TParam;
321321begin
322322 param := TParam.Create;
323323 param.Name := aParam;
324+ if not aValueSeparator.IsEmpty then param.ValueSeparator := aValueSeparator;
324325 param.Alias := ' ' ;
325326 try
326327 Result := ExistParam(param,param.Name );
You can’t perform that action at this time.
0 commit comments