lhelp: show help on --help and -h

git-svn-id: trunk@64297 -
This commit is contained in:
mattias 2020-12-28 22:45:11 +00:00
parent fe9ac84b09
commit 5607a8093c

View File

@ -40,7 +40,8 @@ begin
Application.Initialize;
for X := 1 to ParamCount do
begin
if LowerCase(ParamStr(X)) = '--help' then
case LowerCase(ParamStr(X)) of
'--help','-h':
begin
S := TStringList.Create;
S.Add(slhelp_LHelpOptions);
@ -61,6 +62,7 @@ begin
Exit;
end;
end;
end;
Application.CreateForm(THelpForm, HelpForm);
Application.CreateForm(THelpPopupForm, HelpPopupForm);