[fpc-devel] GetLongOpts won't set flag when long option is found
d7559b8c502dea1b5323af444e81e014 at grabun.pl
Mon Oct 10 20:33:56 CEST 2016
I've been playing with GetLongOpts recently and I *think* I found a
bug though this may be as well a required behaviour but I decided to
report it anyway.
GetLongOpts fails to set a flag even when directly told to so.
Consider following code .
When executed with '-o' it sets flag as expected. When one uses
'--option' instead flag is not set.
In getopts.pp, line #397:
if longind<>nil then
if pfound^.flag<>nil then
I do believe that the exit should be there but again, maybe that's
Looking forward to your reply,
More information about the fpc-devel