Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Quick.Parameters.pas
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ TParam = class
{$ENDIF}
function GetHelp : TStringList;
property Help : Boolean read fHelp write fHelp;
function ExistsParam(const aParam : string): Boolean; overload;
function ExistsParam(const aParam : string; const aValueSeparator : string = ''): Boolean; overload;
end;
{$M-}

Expand Down Expand Up @@ -315,12 +315,13 @@ function TParameters.CheckHelpSwitch: Boolean;
end;
end;

function TParameters.ExistsParam(const aParam : string): Boolean;
function TParameters.ExistsParam(const aParam : string; const aValueSeparator : string = ''): Boolean;
var
param : TParam;
begin
param := TParam.Create;
param.Name := aParam;
if not aValueSeparator.IsEmpty then param.ValueSeparator := aValueSeparator;
param.Alias := '';
try
Result := ExistParam(param,param.Name);
Expand Down