You've already forked lazarus-ccr
aarre
applications
bindings
components
Comba_Animation
aboutcomponent
acs
beepfp
callite
chelper
chemtext
cmdline
cmdlinecfg
trunk
idecompopt
testguibuild
cmdlinecfg.pas
cmdlinecfgjson.pas
cmdlinecfgparser.pas
cmdlinecfgui.pas
cmdlinecfguijson.pas
cmdlinecfgutils.pas
cmdlinefpccond.pas
cmdlinelazcompopt.pas
cmdlinelclctrlsbox.pas
cmdlinelclpropgrid.pas
cmdlinelclutils.pas
fpc.copt
readme.txt
test.copt
testcmdlineparse.lpi
testcmdlineparse.lpr
testcompconfread.lpi
testcompconfread.pas
testgetversion.lpi
testgetversion.lpr
testlazopt.lpi
testlazopt.lpr
testmakeline.lpi
testmakeline.lpr
testuijson.lpi
testuijson.lpr
colorpalette
cryptini
csvdocument
epiktimer
extrasyn
fpexif
fpsound
fpspreadsheet
fractions
freetypepascal
geckoport
gradcontrols
grid_semaphor
industrialstuff
iosdesigner
iphonelazext
jujiboutils
jvcllaz
kcontrols
lazautoupdate
lazbarcodes
lazmapviewer
lclextensions
longtimer
manualdock
mbColorLib
mplayer
multithreadprocs
nvidia-widgets
onguard
orpheus
playsoundpackage
poweredby
powerpdf
rgbgraphics
richmemo
richview
rtfview
rx
scrolltext
smnetgradient
spktoolbar
svn
systools
tdi
thtmlport
tparadoxdataset
tvplanit
xdev_toolkit
zlibar
zmsql
examples
image_sources
lclbindings
wst
30 lines
517 B
ObjectPascal
30 lines
517 B
ObjectPascal
![]() |
program testcompconfread;
|
||
|
|
||
|
{$mode delphi}{$H+}
|
||
|
|
||
|
uses
|
||
|
SysUtils, Classes, cmdlinecfg, cmdlinecfgjson, cmdlinecfgutils
|
||
|
{ you can add units after this };
|
||
|
|
||
|
var
|
||
|
cfg : TCmdLineCfg;
|
||
|
begin
|
||
|
if Paramcount=0 then begin
|
||
|
writeln('please provide the configuration file name');
|
||
|
exit;
|
||
|
end;
|
||
|
try
|
||
|
cfg := TCmdLineCfg.Create;
|
||
|
try
|
||
|
CmdLineCfgJSONReadFile(ParamStr(1), cfg);
|
||
|
CmdLineDebug(cfg);
|
||
|
finally
|
||
|
cfg.Free;
|
||
|
end;
|
||
|
except
|
||
|
on e: Exception do
|
||
|
writeln(e.message);
|
||
|
end;
|
||
|
end.
|
||
|
|