Re: [fpc-devel] GetLongOpts won't set flag when long option is found

2016-10-13 Thread grouchysmurf
Hi. > I will look at it, at least I can reproduce the problem. > Can you please post a bugreport, so it will not be forgotten ? Cool, thanks. http://bugs.freepascal.org/view.php?id=30736 I forgot that mantis automatically changes #xxx to link pointing to a corresponding bug report.

Re: [fpc-devel] GetLongOpts won't set flag when long option is found

2016-10-13 Thread Michael Van Canneyt
On Mon, 10 Oct 2016, grouchysmurf wrote: Hi. 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

[fpc-devel] GetLongOpts won't set flag when long option is found

2016-10-11 Thread grouchysmurf
Hi. 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 [1]. When executed with '-o' it sets